SQL PRACTICAL QUES
SQL PRACTICAL QUES
Create a table named employee having fields emp_id as primary key, ename, dept, dept_no,
salary, contact_no, address, commission, hire_date.
4. List the names of all employees who are working in department number 20.
5. Display the details of those employees who have joined before the end of Sept 2020.
7. List the employee detail that does not belong to department number 10 and 20.
8. List employee name and salary whose salary varies from 5000 to 10000.
9. List employee detail that is clerk and earns more than 5000.
10. List name and job of all employees who are not clerk.
11. List the Employee’s name and Date of joining in descending order of Date of joining. The column
title should be Date of Joining.
13. List employees who are working as salesman and having name of four characters.
15. List employees who are earning commission more than their salary. Only those records should
be displayed where commission is given (also sort the output in descending order).
16. Display name, dept_no, annual salary of those employees who are earn annual salary is 120000
or more.
17. Display the record of clerks of department 20 and manager of department 10.