Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

SQL Assignment 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1.

Write a Query to display employee name and his employee number and
his hired date and salary with reduction of 20% only if his salary is
greater than 2500 of his department number is 10.
2. Write a Query to display employee name, his employee number and
salary with the hike of 10% only if their annual salary exceeds 10000.
3. Write a Query to display name, salary, commission and date of joining of
every employee.
4. Write a Query to display employee name, his designation and his
manager’s employee number.
5. Write a Query to display employee name and his department number.
6. Write a Query to display all the details of each and every employee of the
company having commission more than 0.
7. Write a Query to display all the details of department present in company.
8. Write a Query to display employee name, his employee number, his
salary and also his annual salary for every employee.
9. Write a Query to display employee name, his employee number and
salary with the hike of 30% for every employee.
10.Write a Query to display name of the employee with annual salary, with a
monthly bonus of 200 and provide suitable alias name.
11.Write a Query to select name and the salary of employee if the salary is
greater than 1500.
12.Write a Query to display all the details of employee only if his
commission is greater than his salary.
13.Write a Query to display depart name, depart number for all the
department which is located in New York.
14.Write a Query to display all the details of employee only if annual salary
is greater than 15000.
15.Write a Query to display all the details of employee if he is working as a
Salesman.
16.Write a Query to display salaries of employee who is working as Analyst.
17.Write a Query to display employee name, job, and commission, depart
number, existing salary, and new salary with the reduction of 35%.
18.Write a Query to display all the employee who belongs to department
number 10.
19.Write a Query to display all the details of employee if he is not having the
reporting manager.
20.
Write a Query to display ename and salary of all employee having salary
more than 4000.
21.Write a Query to display department name and its location for all the
department.
22.Write a Query to display name, salary, commission and date of joining of
every employee.

23.Write a Query to display all the details of employee if he gets no


commission.
24.Write a Query to display salaries of employee who is working as
Manager.
25.Write a Query to display ename, manager, hired date, salary, new salary
with hike 25% only if their salary is less than 1500.
26.Write a Query to display salaries and names of employee who is working
as Analyst.
27.Write a Query to display name and hire date of an employee if his salary
is 5000.
28.Write a Query to display all the details of employee whose name is
Adams.
29.Write a Query to display salary of employee whose name is Miller.
30.Write a Query to display the Manager id of employee whose name is
Scott.
31.Write a Query to display commission of all the Employees.
32.Write a Query to display Designation of the employee who was hired
after 1981
33.Write a Query to display all the details of employee if he is working as a
salesman or analyst and department number either 10 or 20 and salary
should be greater than 2000.
34.Write a Query to display employee name and his employee number and
his hired date and salary with reduction of 20% only if his salary is
greater than 2500 of his department number is 10.
35.Write a Query to display all the details of employee if he working either
salesman or clerk and salary greater than 3000 or not equal to 2500 and
department number either 30, 10, 40.
36.Write a Query to display all the employee who belongs to department
number 10 or 20 and comm between 1000 and 3000 and were hired
during 1980 to 1983.
37.Write a Query to display Ename, salary, annual salary with the hike of
25% only if he is a clerk and his date of hire is after 16th of June 1982.
38.Write a Query to display all the details of employee if he working either
salesman or clerk and salary greater than 3000 or not equal to 2500 and
department number either 30, 10, 40.
39.Write a Query to display all the details of employee if the salary ranges
between 500 and 250 and department number either 10, 20, 30.
40.Write a Query to display all the employee who belongs to department
number 10 or 20 and comm between 1000 and 3000 and were hired
during 1980 to 1983.

You might also like