This is a challenge submission for UWA Data Analytics Bootcamp, Module 9 SQL
It’s been two weeks since you were hired as a new data engineer at Pewlett Hackard (a fictional company). Your first major task is to do a research project about people whom the company employed during the 1980s and 1990s. All that remains of the employee database from that period are six CSV files.
For this project, you’ll design the tables to hold the data from the CSV files, import the CSV files into a SQL database, and then answer questions about the data. That is, you’ll perform data modelling, data engineering, and data analysis, respectively.
This Challenge is divided into three parts: data modelling, data engineering, and data analysis.
CSV Files with data sets have been inspected, and DBD created.
Table Schema created for all tables in data set.
The following Queries have been created for this database:
- List the employee number, last name, first name, sex, and salary of each employee.
- List the first name, last name, and hire date for the employees who were hired in 1986.
- List the manager of each department along with their department number, department name, employee number, last name, and first name.
- List the department number for each employee along with that employee’s employee number, last name, first name, and department name.
- List the first name, last name, and sex of each employee whose first name is Hercules and whose last name begins with the letter B.
- List each employee in the Sales department, including their employee number, last name, and first name.
- List each employee in the Sales and Development departments, including their employee number, last name, first name, and department name.
- List the frequency counts, in descending order, of all the employee last names (that is, how many employees share each last name).
The following files are included in this submission;
EmployeeSQL\
..data\
....departments.csv
....dept_emp.csv
....dept_manager.csv
....employees.csv
....salaries.csv
....titles.csv
..Database Diagram\
....Employee SQL DBD.pdf
....Employee SQL DBD.png
..SQL Schemas\
....Queries.sql
....Table_Schemata.sql