/SQL-Demo

SQL coding demonstration on Company Employee dataset

Primary LanguageJupyter Notebook

sql-challenge

SQL coding demonstration on Company Employee dataset with the following relationship

  1. Designed the tables to hold data in the CSVs, import the CSVs into a SQL database, and dispalyed the following from the dataset:

  2. Dispalyed the following details of each employee: employee number, last name, first name, sex, and salary.

  3. Dispalyed first name, last name, and hire date for employees who were hired in 1986.

  4. Dispalyed the manager of each department with the following information: department number, department name, the manager's employee number, last name, first name.

  5. Dispalyed the department of each employee with the following information: employee number, last name, first name, and department name.

  6. Dispalyed first name, last name, and sex for employees whose first name is "Hercules" and last names begin with "B."

  7. Dispalyed all employees in the Sales department, including their employee number, last name, first name, and department name.

  8. Dispalyed all employees in the Sales and Development departments, including their employee number, last name, first name, and department name.

In descending order, list the frequency count of employee last names, i.e., how many employees share each last name.

Following Image is the ERD created from the dataset QuickDBD-Free Diagram