Write queries (a) to (d) based on the tables EMPLOYEE and DEPARTMENT given below:
Table: EMPLOYEE
Table: DEPARTMENT
DEPTID |
DEPTNAME |
FLOORNO |
D001 |
Personal |
4 |
D002 |
Admin |
10 |
D003 |
Production |
1 |
D004 |
Sales |
3 |
(a) To display the average salary of all employees, department wise.
(b) To display name and respective department name of each employee whose salary is more than 50000.
(c) To display the names of employees whose salary is not known, in alphabetical order.
(d) To display DEPTID from the table EMPLOYEE without repetition.