0% found this document useful (0 votes)
25 views5 pages

Chapter 3 Capstone Project

The capstone project involves creating an Employee Data Management and Analysis System for TTSET GLOBAL using SQL. The project requires building a database to manage employee details, performing data insertion, retrieval, filtering, sorting, aggregation, and generating reports for HR and Finance teams. Additionally, it includes tasks for data updates and emphasizes the importance of SQL knowledge, correctness, complexity handling, and documentation in the evaluation criteria.

Uploaded by

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

Chapter 3 Capstone Project

The capstone project involves creating an Employee Data Management and Analysis System for TTSET GLOBAL using SQL. The project requires building a database to manage employee details, performing data insertion, retrieval, filtering, sorting, aggregation, and generating reports for HR and Finance teams. Additionally, it includes tasks for data updates and emphasizes the importance of SQL knowledge, correctness, complexity handling, and documentation in the evaluation criteria.

Uploaded by

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

Capstone Project: Employee Data Management and Analysis System

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:

Part 1: Data Insertion and Setup

1. Create a Table:
o Write SQL statements to create a table named employees with the
following columns:

 id: Integer (Primary Key)

 name: Varchar (Employee Name)

 department: Varchar (Department Name)

 salary: Integer (Salary of Employee)

 join_date: Date (Joining Date of Employee)

2. Insert Data:

o Insert the data from the CSV file into the employees table using SQL
INSERT statements.

Part 2: Data Retrieval and Filtering

1. Basic Data Retrieval:

o Write a query to retrieve all columns from the employees table.

o Write a query to retrieve only the name and department columns from the
employees table.

2. Filtering Data:

o Retrieve the details of all employees in the IT department.

o Retrieve the details of employees who earn more than 6000.

o Retrieve the details of employees who joined after January 2021.

Part 3: Sorting and Limiting Results

1. Sort and Retrieve Data:


o Retrieve the names and salaries of all employees, sorted by salary in
descending order.

o Retrieve all employee details, sorted by the date they joined, in ascending
order.

2. Limit Results:

o Write a query to retrieve the top 3 highest-paid employees.

o Retrieve the 2 most recently hired employees.

Part 4: Data Aggregation and Analysis

1. Department Analysis:

o Count how many employees work in each department.

o Retrieve the distinct departments in the company.

2. Salary Analysis:

o Calculate the total salary of all employees.

o Calculate the average salary in each department.

o Find the minimum and maximum salary in the company.

Part 5: Reports and Advanced Analysis

1. Employee Growth Report:

o Write a query that groups employees by the year they joined and counts
how many employees were hired each year.

2. Department Salary Budget:

o Calculate the total salary budget for each department.


3. Salary Distribution:

o Write a query that returns the names of employees whose salaries are
above the average salary in their respective departments.

Part 6: Presenting Findings to the HR and Finance Teams

You are required to generate insightful reports for both the HR and Finance teams
based on the analysis.

• HR Report:

o A report summarizing the number of employees in each department.

o A report showing employee growth over time (based on joining dates).

o Highlight departments with the highest employee turnover.

• Finance Report:

o A report summarizing the total salary budget for each department.

o Highlight the top 3 highest-paid employees and their departments.

o Calculate the average salary across the company and identify employees
who are paid above this average.

Bonus Task: Implementing Data Updates

1. Salary Adjustments:

o Write an SQL query to increase the salary of all employees in the IT


department by 10%.

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:

• Submit SQL queries for all parts.

• 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:

1. SQL Knowledge: Efficient use of SQL queries to manipulate, retrieve, and


analyze data.

2. Correctness: Queries should return the correct result for each task.

3. Complexity Handling: Ability to handle advanced data aggregation and filtering.

4. Documentation: Clear and well-structured explanations of the approach.

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!

You might also like