You are on page 1of 2

1.

Display the details of employees those who earn a salary more than 1500 but less
than 3000.

2.
Display the details of those who have joined in the year 1981

3.
Display all the details of employee ALLEN

4.
Create a Report to display the Department No. and Lowest Salary of the each
department with the Highest Average Salary.

5.
Show all Employees who were hired in the First Half of the Month (Before 16th of
the Month).

6.
Write a SQL Query which displays the Employee Name,his hiring date and his salary.
Sort the Employee Details salary wise for those employees
whose commission is included in their salary.

7.
Write a SQL Query to display the number of months each employee has been working in
the organization.

8.
Write a SQL Query to display the Employee Name and his Salary.
Provide the Employee Name at the runtime.
(User may enter the value in any case, this SQL query should handle this)

9.
Write a SQL Query to display the Employee Name,his Salary.
Display the COMM Column as 'Salary Includes Commission' for those employees who
have no commission

10.
List the names and employee numbers of managers who earn more than 2600.
Display in alphabetic order by name.

11
Select information about managers and the president from table EMP.
Order the result by department number.

12.
Write a SQL Query to display all Employees who have joined in the First Week of the
month.

13.
Write a SQL to display all the Subordinates who are working under BLAKE.

14.
Write a SQL Query to display all records in EMP table similiar to KING's Job.

15.
Write a SQL Query to display all employee whose location is DALLAS.

16.
Write a SQL Query to display all the departments where department has only 3
employees.

17.
Write SQL Query to display all employees where ename starts with J and ends with S.

18.
Write a SQL query to display ename, deptno from employee table.
Also add another column in the same query and it should display ten for dept 10,
twenty for dept 20, thirty for dept 30, fourty for dept 40.

19.
Write a SQL Query to display all three figures salary in emp table

20.
Write a SQL Query to display the First 3 Top Earners in the Organization.

21.
Write a SQL Query to display the Least 3 Earners in the Organization.

22.
Write a SQL Query to display the Top 4 Senior Most Employees in the Organization.

23.
Write a SQL Query to display the Top 4 Junior Most Employees in the Organization.

You might also like