Menu Close

Sql_challenge

SQL_challenge

Module 9

On this project I have analyzed the company employee data from the 1980s and 1990s performing data modeling, data engineering and data analysis.I created tables to store the data from the CSV files, imported the CSV files into a SQL database, and then responded to the company’s inquiries regarding the data.

Data Modeling

Using QuickDBD, I created an Entity Relationship Diagram of the tables to model the data used in this project as following below:

Data Engineering

SQL was used to create the label schema for each CSV file. The schemas for the table included constraints like data types, primary keys, foreign keys, composite keys, and so on

Data Analysis

1.List the employee number, last name, first name, sex, and salary of each employee.

2.List the first name, last name, and hire date for the employees who were hired in 1986.

3.List the manager of each department along with their department number, department name, employee number, last name, and first name.

4.List the department number for each employee along with that employee’s employee number, last name, first name, and department name.

5.List first name, last name, and sex of each employee whose first name is Hercules and whose last name begins with the letter B.

6.List each employee in the Sales department, including their employee number, last name, and first name.

7.List each employee in the Sales and Development departments, including their employee number, last name, first name, and department name.

8.List the frequency counts, in descending order, of all the employee last names (that is, how many employees share each last name.

View Source Code
Posted in Development