Loading, please wait ...
Open its course - Database Systems Labs
Nested Queries By Mukhtiar Zamin
Summary

Summary

4
Teachers with
Mukhtiar Zamin
19
Followers
For Learning
All
Visibility
Security Status
1
Contributions
By Teachers
Notes
  1. Students are auto-evaluated against related topics to ensure they learned it.

This lab will cover the use of nested queries and how to optimize information generation with the help of nested queries.

To be updated

Lab Tasks for All, By Mukhtiar Zamin

Use our different case studies databases i.e. DreamHome, Northwind etc. and write the nested queries to generate the following information.

  1. Write a query to find the names (first_name, last_name) of the employees who have a manager and work for a department based in the United States.
    Hint : Write single-row and multiple-row subqueries
  2. Write a query to find the names (first_name, last_name) of the employees who are managers.
  3. Write a query to find the names (first_name, last_name), the salary of the employees whose salary is greater than the average salary.
  4. Write a query to find the names (first_name, last_name), the salary of the employees whose salary is equal to the minimum salary for their job grade.
  5. Write a query to find the names (first_name, last_name), the salary of the employees who earn more than the average salary and who works in any of the IT departments.
  6. Write a query to find the names (first_name, last_name), the salary of the employees who earn more than Mr. Bell.
  7. Write a query to find the names (first_name, last_name), the salary of the employees who earn the same salary as the minimum salary for all departments.
  8. Write a query to find the names (first_name, last_name), the salary of the employees whose salary greater than the average salary of all departments.
  9. Write a query to find the names (first_name, last_name) and salary of the employees who earn a salary that is higher than the salary of all the Shipping Clerk (JOB_ID = ’SH_CLERK’). Sort the results of the salary of the lowest to highest.
  10. Write a query to find the names (first_name, last_name) of the employees who are not supervisors.
  11. Write a query to display the employee ID, first name, last names, and department names of all employees.
  12. Write a query to display the employee ID, first name, last names, salary of all employees whose salary is above average for their departments.
  13. Write a query to fetch even numbered records from employees table.
  14. Write a query to find the 5th maximum salary in the employees table.
  15. Write a query to find the 4th minimum salary in the employees table.
  16. Write a query to select last 10 records from a table.
  17. Write a query to list department number, name for all the departments in which there are no employees in the department.
  18. Write a query to get 3 maximum salaries.
  19. Write a query to get 3 minimum salaries.
  20. Write a query to get nth max salaries of employees.Further practice with nested queries

×

Nested Queries Evaluation

To earn PASS status, system is about to evaluate you using multiple choice questions (MCQs) and True/False type questions.

  • CAREFULLY READ THE FOLLOWING INSTRUCTIONS!
  • Make sure you have learned this lecture along with its topics and tutorials.
  • On first evaluation you get 100% marks on correct answer, then on 2nd you get 95% marks and so on.
  • Answer the questions with a gap NOT MORE THAN A MINUTE, Otherwise it will re-start.

I have read above instrucitons and ready for evaluation.
Your's
Status
Not Registered
Teacher
Mukhtiar Zamin
TODO
Please ask your teacher to link related questions for this lecture.
Alert
Your performance monitoring will start when you register in a class of this course.

Questions on

No Linked topics!
Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert