Question: Using our HR and STORE schemas, create a ch6.sql script file, and write subqueries to implement the following. 1. HR: Who works in James Marlow's

Using our HR and STORE schemas, create a "ch6.sql" script file, and write subqueries to implement the following. 1. HR: Who works in James Marlow's department? 2. HR: What jobs started after Steven King was hired? 3. HR: Which employees earn more than the average salary for their department? (correlated) 4. STORE: List the employees and average sales amounts, if greater than the average of all sales. (join, with group by) 5. STORE: For employees in the division with the lowest salary, show their salary along with the salary increased 5%. (nested) 6. STORE: Create Emp3 from Employees2, and reduce Emp3 salaries 1% for any employees with no sales. (update)

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!