Question: Write in SQL Language 1) For each department get the average salary for men and women, output should be department name, avg for men, avg

Write in SQL Language

1) For each department get the average salary for men and women, output should be department name, avg for men, avg for women

2) Get the minimum, average, and maximum salary in each department. Only show the department name. The names of the columns in the output table should be: "Department name", "Minimum salary", "Average salary", and "Maximum salary

3) Show the distinct titles and the number of employees with that title in the customer service department. The output should look like a table with these columns: "Title", Number"

4) Show a list of managers in each department, sorted by the date they started working with their current title. The output should have these columns: "Department Name", "Manager Name", "Title", from-date"

I just need to know how the set up will look. The sql contains 4000 pages of tables, I can't post all of it on here.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!