Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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_2

Step: 3

blur-text-image_3

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

What lessons can be learned from such cases?

Answered: 1 week ago