0% found this document useful (0 votes)
39 views1 page

Introduction To Database

This document outlines 10 tasks involving writing SQL queries on employee data: 1) Find highest total salary by job group, 2) Display employees earning more than all clerks, 3) Display employees matching another's department and salary, 4) Display departments' location, employee count and average salary, 5) Display third lowest paid employee, 6) Display employees in Smith's department excluding Smith, 7) Find lowest paid manager, 8) Display employees hired after King, 9) Find department with most employees, 10) Find department of highest paid employee.

Uploaded by

Farhana Nazira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views1 page

Introduction To Database

This document outlines 10 tasks involving writing SQL queries on employee data: 1) Find highest total salary by job group, 2) Display employees earning more than all clerks, 3) Display employees matching another's department and salary, 4) Display departments' location, employee count and average salary, 5) Display third lowest paid employee, 6) Display employees in Smith's department excluding Smith, 7) Find lowest paid manager, 8) Display employees hired after King, 9) Find department with most employees, 10) Find department of highest paid employee.

Uploaded by

Farhana Nazira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Introduction to Database

1. Find out job group name who have highest amount of total salary. (Sal + comm)
2. Create a query to display the employees that earn a salary that is higher than the salary of all
clerks. Sort the results on salary from highest to lowest.
3. Write a query to display the name, department number and salary of any employee whose
department number and salary match the department number and salary of any employee who
earns a commission.
4. Write a query to display the department name, location name and number of employees and
their rounded average salary for all employees as department name wise and location wise.
5. Display the employee name along with their salary who is getting the third lowest salary.
6. Write a query to display the employee name and Hiredate for all employees in the same
department as smith. Exclude smith.
7. Find the name of lowest paid manager. (Manager is not Job)
8. Display the employee details who joined after KING.
9. Find the department where maximum number of employee is located
10. Find the department no of the highest paid salary. ( Highest paid means maximum of every
salary)

You might also like