Skip to content

SQL Assignment 4

Sayan Bhattacharya edited this page Dec 1, 2025 · 4 revisions

1.Display all columns from the employees table.

image

2.Display the first_name and last_name of all employees.

image

3.Display the employee_id, job_id, and salary of all employees.

image

4.Display employees whose salary is greater than 10000.

image

5.Display employees whose salary is less than 5000.

image

6.Display employees who belong to department_id = 90.

image

7.Display employees who work as 'IT_PROG'.

image

8.Display employees whose salary is between 8000 and 12000.

image

9.Display employees whose department_id is 10, 20, 30.

image

10. Display employees whose department_id is not 50.

image

11.Display employees whose job_id is not 'SA_REP'.

image image

12.Display employees whose first_name starts with ‘A’.

image

13.Display employees whose last_name ends with ‘n’.

image

14. Display employees whose first_name contains the letter ‘e’.

image

15.Display employees whose manager_id is null.

image

16.Display employees whose commission_pct is not null.

image

17.Display employees who have job_id = 'SA_MAN' and salary greater then 10000.

image

18.Display employees who have department_id is 60 or job_id is 'IT_PROG'.

image

19. Display employees whose department_id is between 40 and 100.

image

20.Display employees who do not have any commission_pct assigned.

image image

Clone this wiki locally