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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started