GithubHelp home page GithubHelp logo

sql_employee_database's Introduction

SQL Employee Database Analysis

Objective:

Using sql views and queries, analysis the database for business. Find potential mentorship candidates, which employees are retiring and from which departments.

Tools & databases used:

  • PostgreSQL
  • SQL

Preparing Analysis:

Creating database:

In order to understand the schema needed for this database, I decided to mock up a quick diagram to better understand which keys are needed.

diagram

From here I decided to go with this schema (SQL File) and import the data from the csv files:

Creating views:

To gain further insight into the database I wanted to look at the following data:

  • Retirement eligibility
  • Retirement for current employees in the company
  • Employees gender and salary
  • Department managers
  • Employees in each department
  • Find overlap in departments, such as sales and development.
  • Further break down retirement to make sure there are no duplicates
  • See if any employees qualify for mentorship

Since I wanted this data to be temporary for the goal of quickly getting query results back, I decided they were best used as views.

Analysis:

(SQL File) Example of the postgres database:
example

(SQL File) All retiring employees:
employees

(SQL File) Retiring employees without duplicates:
retiring

(SQL File) Number of employees retiring by title:
titles

(SQL File) Employees eligilible for mentorship:
mentorship

sql_employee_database's People

Contributors

ryndine 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.