Lab03 bscs22013 DB
Lab03 bscs22013 DB
1. Get all employees whose first name starts with "A".(USE LIKE OPERATOR)
Rows Returned: 3
2. Select all unique values from the department_name column in the departments table.
3.List all employees with 'Salesperson' in their job titles, ordered by their hire dates:
Rows Returned: 5
4. Get all employees whose first name starts with "A" and last name contains "son":
5. List the employees whose department ID is either 1 or 2 and whose hire date is after
January 1, 2022.(USE IN OPERATOR)
Rows Returned: 7
7.List the employees whose first name starts with "J" or "M" and whose salary is
between $40,000 and $60,000. (USE LIKE OPERATOR)
Rows Returned: 20
9. List all employees with salaries in ascending order:
11. Select all unique values from the department_name column in the departments table
where the department location is either 'New York' or 'London'.
14. Select the first_name, last_name, job_title, and salary columns from the employees
table where the job_title is either 'Engineer' or 'Manager' and the salary is greater than
or equal to $60,000
18. Select the first_name, last_name, and job_title columns for employees who earn a
salary between $40,000 and $60,000.(USE ‘BETWEEN-AND’ OPERATOR)
20. Select the department_id, department_name, and location columns from the
departments table where the department_name is either 'Sales' or 'Marketing' and the
location is 'London'.