WebMar 16, 2024 · SQL query for creating the schema for our table is given below. CREATE TABLE Employee ( ID INTEGER, NAME VARCHAR(20), SALARY INTEGER ) Output. Now that we have the schema for the table, let’s move on to the next step where we will insert some values in the schema to get the desired end result. Inserting Values in Table Answer: To display the average age of Employees in DepCde as 103: 1. The AVG(Age ) function is used to display the average age. 2. The WHERE clause followed by the condition ie., DepCde=103 is used to select only those employees with DepCode as 103. QUERY: SELECT AVG(Age) FROM EMPLOYEE WHERE … See more Answer: To display all DepName along with the DepCde in descending order of DepCde, the ORDER BY clause followed by column name ie., DepCde followed by the keyword DESC … See more Answer: The query will display the l argest and smallest value in the column JoinDate of table EMPLOYEE. See more
Solved Consider the table toys given below: Table: Toys
Web(ii) To display the average age of Employees in DepCde as 103. (iii) To display the name of DepHead of the Employee named “Sanjeev P” (iv) To display the details of all … WebWHERE employee.e_no = dependant.e_no GROUP BY e_name; 9. Consider the relations given below Borrower (id_no, name) Book (accno., title, author, borrower_idno) (a) Define the above relations as tables in SQL making real world assumptions about the type of the fields. Define the primary keys and the foreign keys. top famous places in the world
Oracle Live SQL - Script: EMP and DEPT
WebComputer Science questions and answers. Consider the table toys given below: Table: Toys toyid toyname quantity price T101 Army Men 240 2100 T102 Finger Paint 150 1500 … WebJan 19, 2024 · Consider the table, MOVIEDETAILS given below: Table: MOVIEDETAILS (a) Identify the degree and cardinality of the table. (b) Which field should be made the primary key? Justify your answer. OR (a) Identify the candidate key (s) from the table MOVIEDETAILS. (b) Consider the table SCHEDULE given below: Table: SCHEDULE WebMar 28, 2024 · Give the output of the following SQL queries: (i) SELECT COUNT(SGRADE), SGRADE FROM EMPLOYEE GROUP BY SGRADE; Answer: The query will display the number of Employees in each grade. ... 2011 Consider the following tables EMPLOYEE and SALGRADE and answer (a) and (b) parts of this question: … top fan certificate