Write a sql query uses union of the two tables


Assignment:

Q1: Write a SQL query that uses UNION of the two tables. Be creative.

Using the updated database, write the following queries using the SQL GROUP BY statement and appropriate aggregate statements (when needed):

Q2: Write a SQL query that displays the average salary / hourly wage grouped by job_title.

Q3: Write a SQL query that displays the number of people in each EE0-1 Classification and the average salary / hourly wage for each classification.

Q4: Group employees by EEO classification: Select the employees' last names and group them by EEO-1 Classification

Q5: Group employees by salary within their EEO classification: Select the employees' last names and group them by salary within their EEO-1 Classification.

Q6: Select the employees' last names and group them by salary within job titles that are grouped into exempt and non-exempt.

Using the database and tables from Week Three, write queries to the specifications listed below.
(Note: Verify that the updates in the next three statements (4.1 - 4.3) are completed correctly by displaying the relevant columns before and after the updates run.)

Q7: Choose an EEO-1 Classification: Increase all employees' salaries that have: the selected EEO-1 classification by 10%.

Q8: Increase all employees' salaries by 5%.

Q9: Choose an employee from the employee table; delete this employee.

Using the database and tables from Week Three, write SQL statements to:

Q10: How many people are salaried and how many are hourly?

Q11: Calculate the minimum salary for all salaried employees.

Q12: Calculate the minimum hourly rate for all hourly employees.

Q13: Calculate the average wage (salaried or hourly) for each EEO-1 Classification.

Q14: Calculate the maximum salary for exempt employees and the maximum salary for non-exempt employees.

Q15: Calculate the minimum salary for exempt employees and the maximum salary for non-exempt employees.

Attachment:- Sql data.rar

Solution Preview :

Prepared by a verified Expert
PL-SQL Programming: Write a sql query uses union of the two tables
Reference No:- TGS01939025

Now Priced at $25 (50% Discount)

Recommended (93%)

Rated (4.5/5)