The document contains 50 SQL queries to retrieve employee information from various tables. The queries include finding employee salaries, unique designations, names with salaries increased by 15%, hire dates in a specific format, character counts without spaces, employees not in a specific department, average salaries for a particular job, and more. The queries are ordered from retrieving basic employee data to more complex queries joining multiple tables and filtering on dates, salaries, departments, and other fields.
The document contains 50 SQL queries to retrieve employee information from various tables. The queries include finding employee salaries, unique designations, names with salaries increased by 15%, hire dates in a specific format, character counts without spaces, employees not in a specific department, average salaries for a particular job, and more. The queries are ordered from retrieving basic employee data to more complex queries joining multiple tables and filtering on dates, salaries, departments, and other fields.
5. Write a query in SQL to display all the information of the employees
6. Write a query in SQL to find the salaries of all employees 7. Write a query in SQL to display the unique designations for the employees 8. Write a query in SQL to list the emp_name and salary is increased by 15% and expressed as no.of Dollars 9. Write a query in SQL to produce the output of employees name and job name as a fromat of "Employee & Job" 10. Write a query in SQL to list the employees with Hire date in the format like February 22, 1991 11. Write a query in SQL to count the no. of characters with out considering the spaces for each name 12. Write a query in SQL to list the emp_id,salary, and commission of all the employees 13. Write a query in SQL to display the unique department with jobs 14. Write a query in SQL to list the employees who does not belong to department 2001 15. Write a query in SQL to list the employees who joined before 1991 16. Write a query in SQL to display the average salaries of all the employees who works as ANALYST 17. Write a query in SQL to display the details of the employee BLAZE. 18. Write a query in SQL to list the name of the employees, those having six characters to their name 19. Write a query in SQL to list the employees who joined in the month January 20. Write a query in SQL to list the name of employees and their manager separated by the string 'works for' 21. Write a query in SQL to list the employees whose salaries are less than 3500 22. Write a query in SQL to list the name, id, hire_date, and salary of all the employees joined before 1 apr 91 23. Write a query in SQL to list the id, name, salary, and experience of all the employees who earn more than 100 as daily salary 24. Write a query in SQL to list those employees whose salary is an odd value 25. Write a query in SQL to list the employees those who joined in company before 19th of the month 26. Write a query in SQL to list the employees who are SALESMAN and gathered an experience over 10 years 27. Write a query in SQL to list the employees who are either CLERK or MANAGER 28. Write a query in SQL to list the employees whose annual salary is within the range 24000 and 50000 29. Write a query in SQL to list the employees working under the managers 63679,68319,66564,69000 30. Write a query in SQL to list the managers of department 1001 or 2001 31. Write a query in SQL to list the name, job name, annual salary, department id, department name and grade of the employees who earn 60000 in a year or not working as an ANALYST 32. Write a query in SQL to list the name, job name, manager id, salary, manager name, manager's salary for those employees whose salary is greater than the salary of their managers 33. Write a query in SQL to list the grade, employee name for the department id 1001 or 3001 but salary grade is not 4 while they joined the company before 1992-12-31 34. Write a query in SQL to list the name and salary of FRANK if his salary is equal to max_sal of his grade 35. Write a query in SQL to list the id, name, salary, and location of the employees working at PERTH,or MELBOURNE with an experience over 10 years 36. Write a query in SQL to list the employees along with their location who belongs to SYDNEY, MELBOURNE with a salary range between 2000 and 5000 and joined in 1991 37. Write a query in SQL to list the employees with their location and grade for MARKETING department who comes from MELBOURNE or PERTH within the grade 3 to 5 and experience over 5 years 38. Write a query in SQL to list the employees who are senior to their own manager 39. Write a query in SQL to list the employees in department PRODUCTION or AUDIT who joined after 1991 and they are not MARKER or ADELYN to their name 40. Write a query in SQL to list the details of the employees in ascending order to the department_id and descending order to the jobs 41. Write a query in SQL to display the location of CLARE 42. Write a query in SQL to list the details of the employees in ascending order on the salary 43. Write a query in SQL to list all the employees except PRESIDENT and MANAGER in ascending order of salaries 44. Write a query in SQL to list the employee id, name, hire_date, current date and experience of the employees in ascending order on their experiences 45. Write a query in SQL to list the employees in ascending order of designations of those, joined after the second half of 1991 46. Write a query in SQL to display the total information of the employees along with grades in ascending order 47. Write a query in SQL to list the name, job name, department, salary, and grade of the employees according to the department in ascending order 48. Write a query in SQL to list the name, job name, salary, grade and department name of employees except CLERK and sort result set on the basis of highest salary 49. Write a query in SQL to list the employee ID, name, salary, department, grade, experience, and annual salary of employees working for department 1001 or 2001 50. Write a query in SQL to list the employee id, name, salary, and department id of the employees in ascending order of salary who works in the department 1001