More With SQL: SQL Queries and Subqueries: Tunis Business School University of Tunis
More With SQL: SQL Queries and Subqueries: Tunis Business School University of Tunis
UNIVERSITY OF TUNIS
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