DBMS_ASSIGNMENT 1
DBMS_ASSIGNMENT 1
DBMS
E_id E_name
1 Varun
2 Arun
3 Karuna
4 Amrit
5 Ranjeet
6 Ajeet
1. Find the details of Employee whose salary ranges between 1000 and 3500.
2. Find the details of Employee whose name lies between ‘Varun’ and ‘Nitin’ order by
name alphabetically.
3. Display the highest salary and name of Employee who is taking that salary.
4. Display the second highest salary and name of Employee who are taking that salary.
5. Display the highest salary Department wise and name of Employee who are taking
that salary.
6. Find the details of Employee who are taking 3rd highest salary using correlated
nested subquery.
Q8. Consider the Following Employee and Department Table and wite the SQL Queries:
1. Find the details of all Employee who works in any Department. Write SQL Queries
using Nested Subquery and Correlated Subquery.
2. Find the details of all Employee who do not works in any Department. Write SQL
Queries using Nested Subquery and Correlated Subquery.