Question: Write the following queries in SQL using the Employees schema. The employee schema is as follows: 3.1 Find all the distinct titles. The result should

Write the following queries in SQL using the Employees schema.

The employee schema is as follows:

Write the following queries in SQL using the Employees schema. The employeeschema is as follows: 3.1 Find all the distinct titles. The result

3.1 Find all the distinct titles. The result should be following:

should be following: 3.2 Find the average salaries per the title. The

3.2 Find the average salaries per the title. The result should be the following:

result should be the following: 3.3 Find the number of employees for

3.3 Find the number of employees for each department. The result should be the following:

each department. The result should be the following: 3.4. Find the number

3.4. Find the number of Male/Female employees for each department. The result should be the following:

of Male/Female employees for each department. The result should be the following:

3.5. Find the highest and lowest salary for each department. The result should be the following:

3.5. Find the highest and lowest salary for each department. The result

Eemployees Tales ] departments Columns dept_no dept-name Indexes Foreign Keys Triggers dept_emp Columns emp_no dept_no from_date todate Indexes Foreign Keys Triggers dept manager Columns emp_no dept-no from_date to date

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!