Skip to content

SQL Assignment 1

Sayan Bhattacharya edited this page Nov 24, 2025 · 4 revisions

1.Select all columns from the EMPLOYEES table.

image image

2. Retrieve the first and last names of all employees.

image

3.Show all employees whose salary greater then 4000 or less then 14000.

image image

4.List employees whose salary is greater than 5000.

image image

5.Find employees who work in department 90.

image

6.Display employees whose job_id is 'MAN'.

image

7. List employees without department .

image

8.Show employees with a commission percentage.

image image

9.Get employees without a manager.

image

10. Retrieve employee names and salaries, PF 10% of salary, HRA 12% of Salary and Total Salary = Salary +HRA-PF.

image

11.Select the employees whose last name start with ‘L’.

image

12.Select job IDs from employees table.

image

13.Find the employees in department 50.

image

14.List employees with first names starting with 'A'.

image

15.Find employees whose names contain the letter 'e'.

image

16. Display employees having First Name start with ‘P’ and working in department 80.

image

17.Show the full name (first + last name) of each employee.

image

18.List employees where the salary is between 3000 and 6000.

image

19. Show the employee’s first name who receive a commission.

image

20. List employees who don’t receive a commission.

image

Clone this wiki locally