Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My output: select OrderID, price from ORDER_ITEM where price > (select avg(price) from ORDER_ITEM) order by price desc OrderID price ----------- --------------------------------------- 2001 175.50 1035

My output:

select OrderID, price from ORDER_ITEM where price > (select avg(price) from ORDER_ITEM) order by price desc

OrderID price ----------- --------------------------------------- 2001 175.50 1035 145.00 3022 145.00 2002 125.00 1033 100.00 1032 85.00 1031 82.50 1019 80.00 1038 57.50 1016 47.95 1018 47.50 3021 35.00 1004 32.50 1020 30.00

(14 rows affected)

Now I need to get another column, from a different linking table.

How would I add another subquery for this?

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

Does your product/program have a descriptive and memorable slogan?

Answered: 1 week ago

Question

How does this compare with the Fog Index for your written message?

Answered: 1 week ago