Chapter 3 Capstone Project
Chapter 3 Capstone Project
Project Overview:
You have been hired as a SQL database expert for a company named TTSET GLOBAL,
a growing IT service company. The company needs a robust solution to manage and
analyze its employee data, including information on salaries, departments, and hiring
dates. You are tasked with building a SQL-based data management system that will
enable HR and Finance departments to query and analyze the employee data efficiently.
This capstone project will consolidate the skills you’ve learned in SQL, including
filtering, sorting, aggregation, and data analysis.
Project Requirements:
The dataset for this project contains employee details such as:
• Employee ID
• Employee Name
• Department
• Salary
• Date of Joining
Dataset:
You can use the provided dataset here for this project.
Project Tasks:
1. Create a Table:
o Write SQL statements to create a table named employees with the
following columns:
2. Insert Data:
o Insert the data from the CSV file into the employees table using SQL
INSERT statements.
o Write a query to retrieve only the name and department columns from the
employees table.
2. Filtering Data:
o Retrieve all employee details, sorted by the date they joined, in ascending
order.
2. Limit Results:
1. Department Analysis:
2. Salary Analysis:
o Write a query that groups employees by the year they joined and counts
how many employees were hired each year.
o Write a query that returns the names of employees whose salaries are
above the average salary in their respective departments.
You are required to generate insightful reports for both the HR and Finance teams
based on the analysis.
• HR Report:
• Finance Report:
o Calculate the average salary across the company and identify employees
who are paid above this average.
1. Salary Adjustments:
o Update the salary of any employee whose salary is below the company’s
average salary by 5%.
2. Employee Resignation:
o Write a query to delete an employee from the table based on their id.
o Generate a list of employees who have worked at the company for more
than 3 years.
Project Submission:
• Provide the final result tables for the reports requested by HR and Finance
teams.
• Document your approach to each task, explaining how you solved it and any
challenges faced.
Evaluation Criteria:
2. Correctness: Queries should return the correct result for each task.
5. Reports: The reports for HR and Finance should provide useful and actionable
insights.
This capstone project integrates all the SQL skills you’ve learned during the week,
enabling you to develop a robust solution for real-world company data management. Feel
free to ask if you need any help with specific queries or further clarification!