Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Display Department_id, Job_id, the Average salary for this combination under alias Average Dept/Job Pay and the Lowest salary for this combination as well under

4. Display Department_id, Job_id, the Average salary for this combination

under alias Average Dept/Job Pay and the Lowest salary for this combination as well under alias Lowest Dept/Job Pay, but only if that Lowest Pay falls in the range $5000 - $15000.

Exclude Vice Presidents from this query and departments IT and SALES as well.

Sort the output according to the Department_id and then by Job_id.

You need to use only the Subquery method (NO joins allowed).

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

Step: 3

blur-text-image

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

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions

Question

How does selection differ from recruitment ?

Answered: 1 week ago

Question

Does it avoid use of underlining?

Answered: 1 week ago