Project 8 - Employee Data Analysis (SQL)
Project 8 - Employee Data Analysis (SQL)
DESCRIPTION
An HR of the company wants to extract, update, and delete employee details to maintain their
records.
Objective:
The database design helps to calculate the monthly payroll of each employee efficiently.
Task to be performed:
Write a query to create an employee table with the fields employee id, first name, last name,
job id, salary, manager id, and department id.
Write a query to insert values into the employee table.
Write a query to find the first name and salary of the employee whose salary is higher than
the employee with the last name Kumar from the employee table.
Write a query to display the employee id and last name of the employee whose salary is
greater than the average salary from the employee table.
Write a query to display the employee id, first name, and salary of the employees who earn a
salary that is higher than the salary of all the shipping clerks (JOB_ID = HP122). Sort the
results of the salary in ascending order.
Write a query to display the first name, employee id, and salary of the first three employees
with highest salaries.
Dataset: https://drive.google.com/file/d/1cNMHNQgPiaZLAA_vrLQ72Dyo6HKwGSmE/view?
usp=drive_link