0% found this document useful (0 votes)
1 views

Python

Python
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Python

Python
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Queries

1. Retrive the birth date and address of the employee whose name is ANAND C KAMMAR
from employee table.
2. Retrive first name, birth date and salary of the employees working in department number
3.
3. List all the employees who are born before january 25th 1995.
4. List all the employees except those who are working in the department number 2.
5. List all the employees whose salary is in between 20000 and 30000.
6. Retrive the name and address of all the employees who works for the research
department.
7. List all the employees whose last name is KAMMAR and Department number is 4.
8. List all the employees whose name is ANAND or VINAYAK.
9. List all the employees except who works for department number 4 using NOT keyword.
10. List all the employees except who works for department number 4 using less then(<>)
operator.
11. Sort all the employees according to their first name.
12. Sort all the employees working in department number 4 by their last name.
13. Select all the employees according to their salaries in descending order.
14. List the employees working for 'research' department according to their salaries.
15. List all employees according to their birth date.
16. Compute the total salaries of all the employees.
17. Compute the total salaries of all the who were working in department number 1.
18. Compute the average salary of all the employees.
19. select the maximum and minimum salaries of the employees who working in department
number 1.
20. Count the number of employees in employee table.
21. Count the number of employees working in department number 1.
22. Compute Average salary for each department.
23. Find the maximum and minimum salary of each department.
24. List the maximum salary of those departments in which more than one employee works.
25. Find the department whose minimum salary is less than 22000.
26. Find the department whose maximum salary is greater than 29000.
27. Modify the salary of employee 'VINAYAK' to 22000.
28. Modify the address of the employee ssn=1232 to ' VIJAYPUR'
29. Modify DEPARTMENT LOCATION to mangalore from department 1
30. Modify the datatype of the column plocation to varchar2(25)
31. Rename the the projectgpt1 table to Project01;
32. List the employees and the department names in which they are working
33.List the name and Salary of employees working in 'RESEARCH' department
34. List the employees who are working on project 'Production X'
35. List the employees who are assigned to a department as well as employees who are not
assigned to a department
36. list the employees with their managers
37. Create a view which contains employee ssn, fname, lname, bdate
and salary of all employees.

You might also like