Empi D Empfnam E Emplnam E Departme NT Projec T Address Dob Gende R
Empi D Empfnam E Emplnam E Departme NT Projec T Address Dob Gende R
Q1. Write a query to fetch the EmpFname from the EmployeeInfo table in
upper case and use the ALIAS name as EmpName.
Q3. Write q query to find all the employees whose salary is between
50000 to 100000.
Q4. Write a query to find the names of employees that begin with ‘S’
Q6. Write a query to retrieve the EmpFname and EmpLname in a single column
as “FullName”. The first name and the last name must be separated with space.
Q7. Write a query find number of employees whose DOB is between 02/05/1970
to 31/12/1975 and are grouped according to gender
Q8. Write a query to fetch all the records from the EmployeeInfo table ordered
by EmpLname in descending order and Department in the ascending order.
Q9. Write a query to fetch details of employees whose EmpLname ends with an
alphabet ‘A’ and contains five alphabets.
Q10. Write a query to fetch details of all employees excluding the employees with
first names, “Sanjay” and “Sonia” from the EmployeeInfo table.
Q12. Write a query to fetch all employees who also hold the managerial position.
Q14. Write a query to calculate the even and odd records from a table.
Q16. Write a query to find the Nth highest salary from the table without using
TOP/limit keyword.
Q17. Write a query to retrieve the list of employees working in the same
department.
Q18. Write a query to retrieve the last 3 records from the EmployeeInfo table.
Q19. Write a query to find the third-highest salary from the EmpPosition table.
Q20. Write a query to display the first and the last record from the
EmployeeInfo table.
Q21. Write a query to retrieve Departments who have less than 2 employees
working in it.
Q22. Write a query to retrieve EmpPostion along with total salaries paid for each
of them.
Q23. Write a query to fetch 50% records from the EmployeeInfo table.