0% found this document useful (0 votes)
8 views

SQL PRACTICAL QUES

SQL PRACTICAL QUES

Uploaded by

singhvi.monika19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

SQL PRACTICAL QUES

SQL PRACTICAL QUES

Uploaded by

singhvi.monika19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Create a table named employee having fields emp_id as primary key, ename, dept, dept_no,
salary, contact_no, address, commission, hire_date.

2. List all the information about employees.

3. Display the names of all employees along with their salary.

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.

6. List the employee name and employee number who is ‘Manager’.

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.

12. List employees having TT or LL in their names.

13. List employees who are working as salesman and having name of four characters.

14. List employees having S at the end of their name.

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.

18. Display the average commission drawn by all salesmen.

You might also like