21. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) DISPLAY THE HIGHEST, LOWEST, TOTAL, AND AVERAGE SALARY OF ALL EMPLOYEES. LABEL THE COLUMNS MAXIMUM, MINIMUM, TOTAL_SAL AND AVERAGE_SAL, RESPECTIVELY.
|
||||||||
Answer:
Option (c) |
22. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) FIND TOTAL NUMBER OF EMPLOYEES OF EMPLOYEE TABLE.
|
||||||||
Answer:
Option (d) |
23. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) GIVE MAXIMUM SALARY FROM IT DEPARTMENT.
|
||||||||
Answer:
Option (b) |
24. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) COUNT TOTAL NUMBER OF CITIES OF EMPLOYEE WITHOUT DUPLICATION.
|
||||||||
Answer:
Option (b) |
25. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) DISPLAY CITY WITH THE TOTAL NUMBER OF EMPLOYEES BELONGING TO EACH CITY.
|
||||||||
Answer:
Option (b) |
26. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) DISPLAY CITY HAVING MORE THAN ONE EMPLOYEES.
|
||||||||
Answer:
Option (c) |
27. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) GIVE TOTAL SALARY OF EACH DEPARTMENT OF EMPLOYEE TABLE.
|
||||||||
Answer:
Option (a) |
28. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) GIVE AVERAGE SALARY OF EACH DEPARTMENT OF EMPLOYEE TABLE WITHOUT DISPLAYING THE RESPECTIVE DEPARTMENT NAME.
|
||||||||
Answer:
Option (b) |
29. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) LIST THE DEPARTMENTS HAVING TOTAL SALARIES MORE THAN 50000 AND LOCATED IN CITY RAJKOT.
|
||||||||
Answer:
Option (a) |
30. |
Write SQL statements (Query) for following tables: Employee(EID, EName, Department, Salary, JoiningDate, City) LIST OUT DEPARTMENT NAMES IN WHICH MORE THAN TWO EMPLOYEES.
|
||||||||
Answer:
Option (c) |