SQL Assignments 3
SQL Assignments 3
ASSINGMENT nos - 1
Q1)SQL Query to fetch records that are present in one
table but not in another table.
ASSINGMENT nos - 2
Ques.1. Write an SQL query to fetch the EmpId and FullName of
all the employees working under the Manager with id – ‘986’.
Ques.7. Write an SQL query to fetch all the employees who either
live in California or work under a manager with ManagerId – 321.
ASSINGMENT nos - 3
Ques.1 Write an SQL query to fetch all the EmpIds which are
present in either of the tables – ‘EmployeeDetails’ and
‘EmployeeSalary’.
Ques.5. Write an SQL query to fetch the EmpIds that are present
in EmployeeDetails but not in EmployeeSalary.
ASSINGMENT nos - 4
Ques.1. Write an SQL query to find the count of the total
occurrences of a particular character – ‘n’ in the FullName field.
Ques.3. Fetch all the employees who are not working on any
project.
Ques.6. Write an SQL query to fetch all the Employee details from
the EmployeeDetails table who joined in the Year 2020.
Advanced ASSINGMENT
Q1)Write a query to fetch the EmpFname from the
EmployeeInfo table in the upper case and use the
ALIAS name as EmpName.
Q16. Write a query to fetch all employees who also hold the
managerial position.
Q21. Write a query to find the Nth highest salary from the table
without using TOP/limit keyword.