Analyze employee data of the corporation from the 1980s and 1990s. All that remain of the database of employees from that period are six CSV files.
Inspected the CSVs and sketched out an ERD of the tables. Used a tool like http://www.quickdatabasediagrams.com.
- Used the information to create a table schema for each of the six CSV files by specifying data types, primary keys, foreign keys, and other constraints.
- Imported each CSV file into the corresponding SQL table.
- Listed the following details of each employee: employee number, last name, first name, gender, and salary.
- Listed employees who were hired in 1986.
- Listed the manager of each department with the following information: department number, department name, the manager's employee number, last name, first name, and start and end employment dates.
- Listed the department of each employee with the following information: employee number, last name, first name, and department name.
- Listed all employees whose first name is "Hercules" and last names begin with "B."
- Listed all employees in the Sales department, including their employee number, last name, first name, and department name.
- Listed 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.
- Import the SQL database into Pandas using the following: from sqlalchemy import create_engine
- engine = create_engine('postgresql://localhost:5432/<your_db_name>') connection = engine.connect()
- Create a histogram to visualize the most common salary ranges for employees.
- Create a bar chart of average salary by title.