0% found this document useful (0 votes)
70 views2 pages

More With SQL: SQL Queries and Subqueries: Tunis Business School University of Tunis

Uploaded by

Malék Crístô
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)
70 views2 pages

More With SQL: SQL Queries and Subqueries: Tunis Business School University of Tunis

Uploaded by

Malék Crístô
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/ 2

TUNIS BUSINESS SCHOOL

UNIVERSITY OF TUNIS

More with SQL :


SQL Queries and SubQueries

Write the appropriate SQL queries needed to:

1. Create your tables


2. Write a query in SQL to list the employees whose annual salary is within
the range 24000 and 50000.
3. Write a query in SQL to list the employees whose salary is more than
3000 after giving 25% increment.
4. Write a query in SQL to list the no. of employees in each department
where the no. is less than 4.

CS200 1
TUNIS BUSINESS SCHOOL
UNIVERSITY OF TUNIS

5. Write a query in SQL to list the employee id, name, annual salary, daily
salary of all the employees in the ascending order of annual salary who
works as a SALESMAN.
6. Write a query in SQL to list the ID, name, salary, and job_name of the
employees for
1. Annual salary is below 34000 but receiving some commission which
should not be more than the salary,
2. And designation is SALESMAN and working for department 3001.
7. Write a query in SQL to list the name, job name, annual salary,
department id, department name and grade of the employees who earn
60000 in a year or not working as an ANALYST.
8. Write a query in SQL to display all the details of managers.
9. Write a query in SQL to display the employee ID, name, job name, hire
date, and experience of all the managers.
10. Write a query in SQL to find the numbers of employees are performing
the duty of a manager.
11. Write a query in SQL to find the maximum average salary drawn for
each job name except for PRESIDENT.
12. Write a query in SQL to find out the employees whose salaries are
greater than the salaries of their managers.
13. Write a query in SQL to list the details of most recently hired employees
of department 3001.
14. Write a query in SQL to list the employees whose salary is same as
any one of the employee.
15. Write a query in SQL to list the employees of the grade same as the
grade of TUCKER or experience is more than SANDRINE and who are
belonging to SYDNEY or PERTH
16. Write a query in SQL to list the managers who are senior to KAYLING
and who are junior to SANDRINE.
17. Write a query in SQL to list the employees of grade 2 and 3 who
belongs to the city PERTH.
18. Write a query in SQL to list the department id, name, designation,
salary, and net salary (salary+commission) of the SALESMAN who are
earning maximum net salary.

CS200 2

You might also like