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

Project 8 - Employee Data Analysis (SQL)

Uploaded by

a4amittewari007
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)
22 views1 page

Project 8 - Employee Data Analysis (SQL)

Uploaded by

a4amittewari007
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

Employee Data Analysis

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.

Author: Hermon Masih

Tools used: MySQL

Dataset: https://drive.google.com/file/d/1cNMHNQgPiaZLAA_vrLQ72Dyo6HKwGSmE/view?
usp=drive_link

You might also like