Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wrighang/09_sql-challenge
Module 9: SQL
https://github.com/wrighang/09_sql-challenge
erdiagram pgadmin4 sql sqlscript
Last synced: 4 days ago
JSON representation
Module 9: SQL
- Host: GitHub
- URL: https://github.com/wrighang/09_sql-challenge
- Owner: wrighang
- Created: 2024-11-07T03:31:35.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-01-03T23:17:53.000Z (24 days ago)
- Last Synced: 2025-01-04T00:17:42.557Z (23 days ago)
- Topics: erdiagram, pgadmin4, sql, sqlscript
- Homepage:
- Size: 7.77 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 09_sql-challenge
# Deliverable(s)
Entity Relationship Diagram
![image](https://github.com/user-attachments/assets/53c38c5a-9f99-4cc3-8375-350e50b77cb7)[Entity Relationship Diagram Tables](https://github.com/wrighang/09_sql-challenge/blob/main/employee_sql/erd_tables.md)
[Data Engineering- schema.sql](https://github.com/wrighang/09_sql-challenge/blob/main/employee_sql/QuickDBD-schema.sql)
[Data Analysis.sql](https://github.com/wrighang/09_sql-challenge/blob/main/employee_sql/data_analysis.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 modeling, data engineering, and data analysis, respectively.
## Requirements
### Data Modeling
- Entity Relationship Diagram is included or table schemas provided for all tables### Data Engineering
- All required columns are defined for each table
- Columns are set to the correct data type
- Primary Keys set for each table
- Correctly references related tables
- Tables are correctly related using Foreign Keys
- Correctly uses NOT NULL condition on necessary columns
- Accurately defines value length for columns### Data Analysis
- 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 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=========================================================================
## CODING_PROCESS- Referenced activity assignments throughout the challenge, Xpert Learning Assistant for help with the ERD diagram and random syntax errors i was getting due to forgetting the semicolon or missing an underscore in the column headings, and sql reference cheat sheets I've used in the past at work.