Reference no: EM132398322
You need help with SQL, Pandas, PostgreSQL-11, pgAdmin-4 Homework.
A .sql homework file is being requested for questions 1-8. e) A .ipynb homework file is being requested for questions 9-11.
1. .sql - List the following details of each employee: employee number, last name, first name, gender, and salary.
2. .sql - List employees who were hired in 1986.
3. .sql - List 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.
4. .sql - List the department of each employee with the following information: employee number, last name, first name, and department name.
5. .sql - List all employees whose first name is "Hercules" and last names begin with "B."
6. .sql - List all employees in the Sales department, including their employee number, last name, first name, and department name.
7. .sql - List all employees in the Sales and Development departments, including their employee number, last name, first name, and department name.
8. .sql - In descending order, list the frequency count of employee last names, i.e., how many employees share each last name.
9. .pynb - Import the SQL database into Pandas. (Yes, you could read the CSVs directly in Pandas, but you are, after all, trying to prove your technical mettle.) This step may require some research. Feel free to use the code below to get started. Be sure to make any necessary modifications for your username, password, host, port, and database name: ```sql from sqlalchemy import create_engine engine = create_engine('postgresql://localhost:5432/') connection = engine.connect() ```
10. .pynb - Create a histogram to visualize the most common salary ranges for employees. 11. .pynb - Create a bar chart of average salary by title.
Attachment:- pymaceuticals.rar