GithubHelp home page GithubHelp logo

faufenger / sql-erd-employee-data Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.99 MB

Design the tables to hold data in the CSVs, import the CSVs into a SQL database, and answer questions about the data

Jupyter Notebook 100.00%
sql jupyter-notebook sqlalchemy matplotlib numpy pandas erdiagram

sql-erd-employee-data's Introduction

sql-challenge

It is a beautiful spring day, and it is two weeks since you have been hired as a new data engineer at Pewlett Hackard. The first major task is a research project on employees of the corporation from the 1980s and 1990s. All that remain of the database of employees from that period are six CSV files.

This assignment utilises:

  • ERD skills through QuickDatabaseDiagrams
  • CSV file importing to SQL platform PgAdmin4 with Postgress
    • CSV files found in DATA folder
    • schema to create tables found in schema.sql
  • Querying the CVS data in PgAdmin4 to get sepcific results
    • query listed in query.sql along with corresponding code
  • Juypter notebook for testing if data provided was ficticious material
    • Using sqlalchemy, matplotlib, pandas and numpy

ERD used to connect tables

DBD ERD image

Sample of Queries in PgAdmin4

SQL code

Histogram of Salary Range for company

Histogram

Bar Graph of Average salary by Title

Avg Salary by Title

Outcome

Upon reviewing the data, the data is found to be false.
In so much that it was fabricated by the company as a test and not actual company records.
The employee id we were given returned April Foolsday, as shown in the dataframe below

my_id

sql-erd-employee-data's People

Contributors

faufenger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.