SQL Assignment 1
SQL Assignment 1
SQL Assignment 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.