Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

3. Existing organizations and programs constrain behavior.

Answered: 1 week ago