Please query based on the above tables
Simple queries:
1. List all the employee detail
2. List all the department detail
3. List out first name, last name,salary , commission for all employees
4. List out the employee salary with their name only.
Where conditions
1. List detail about ‘Smith’
2. List out the employees’name who are working in department_id 20
3. List out the employees’name who are earning salary between 3000 and 4500
4. List out the employees’name whose name start with ‘S’
5. List out the employees’name who are not receiving commission
Order by clause
1. List out the employee id, last name in ascending based on the employee id
2. List out the employee detail according to their last_name in ascending order and salaries in descending order
Group by & having clause
1. How many employee who are working in different department wise in the organization (count)
2. List out the department wise maximum salary, minimum salary, average salary of the employees
3. List out department id having at least four employees
Join-conditions
1. Display the employee name who are working in New York
2. List out name, last name of sale manager.
3. Display the employee who are working as ‘Clerk’
4. Find out no.of employee working in ‘Sale’ department
Sub-query operators: (All, Some,Exist)
1. List out the employee who earn more than every employee in department 30
2. List out the employee who earn more than some employee in department 40
3. Find out which department does not have any employees
Co-related Sub Queries
1. Find out the employees who earn greater than the average salary for their department
Set operators
1. List out the distinct jobs in sales and accounting departments - intersect
2. List out the all job in sales and accounting departments- union