You are on page 1of 2

Mekelle Institute of Laboratory manual for

Technology(MIT) Database Management


Mekelle,Tigray ,Ethiopia Systems(DBMSs)

Lab manual : 6

1. If a guest comes and asks you to tell him the number of instructors in each department.
Write a query that answers his question. How can you re-write your query if the guest is
interested in the departments with three or more instructors.

2. If the guest adds extra question and asks you again to tell him the number of instructors in
each department sorted by department name in descending order. How can you write a
query that answers his question?

3. The guest seems to be eager to know more about the instructors in MIT. If he asks you
again to show him the number of instructors in each department whose salary is greater
than 1800.Write a query that satisfies your guest.

4. Find the average salary of the employees who are currently working in the department of
Information Technology.

5. Find the department name and the average salary of its employees if the average salary of
the employees is greater than 2000.

6. Display the names and salary of the employees who are working in the department of
CSE.

7. Find the name and the department of the instructors who are teaching courses with 4
credit hours.

8. Find the names of the instructors, their department names and the names of the course
they are teaching if the course is of 3 credits.

9. Write a query that can increment the salary of the instructors who are teaching courses
with 4 credit hours by 100 birr and saves the change.

10. Find the names and salary of the employees who belong to the IT or CSE department.

11. Find the names of the employees who are not members of the IT department.

12. Find the names of instructors who are elder than the eldest instructor in the IT
department.
13. Identify the department which contains the employee who is paid the maximum salary

14. Find the names of the employees of MIT who are not handling courses because they are
attending their higher studies abroad.

15. Find the names and department of the instructors who are currently working in MIT and
handling courses.

16. Find the details of the instructors in the database whose salary is greater than the average
salary of the instructors in the department of Information Technology.

17. Find the first name, last name and salary of the employees who earn more than each
employee of IT department.

18. Identify the departments whose employees’ average salary is greater than the average
salary of the employees of EEE department.

You might also like