jonowood / sql-challenge

UWA Bootcamp - SQL Challenge Submission

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module 9 Challenge

sql-challenge

This is a challenge submission for UWA Data Analytics Bootcamp, Module 9 SQL

Background

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.

Instructions

This Challenge is divided into three parts: data modelling, data engineering, and data analysis.

Data Modelling

CSV Files with data sets have been inspected, and DBD created.

Employee SQL DBD

Data Engineering

Table Schema created for all tables in data set.

Data Analysis

The following Queries have been created for this database:

  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 the 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).

Submission

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

About

UWA Bootcamp - SQL Challenge Submission