Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following is the correct query to get the product details ( product _ id and product _ price ) for the products

Which of the following is the correct query to get the product details (product_id and product_price) for the products having prices ranged between average price and 50000 from the product table? SQL QUERY
Select only one option
SELECT
PRODUCT_ID,
PRODUCT_PRICE
FROM PRODUCT
WHERE PRODUCT_PRICE =(
SELECT AVG(PRODUCT_PRICE)
FROM PRODUCT
)
AND 50000
ORDER BY PRODUCT_PRICE;
SELECT
PRODUCT_ID,
AVG(PRODUCT_PRICE) AS AVERAGE_PRICE
FROM PRODUCT
WHERE PRODUCT_PRICE BETWEEN (
SELECT PRODUCT_PRICE
FROM PRODUCT
)
AND 50000
ORDER BY PRODUCT_PRICE;
SELECT
PRODUCT_ID,
PRODUCT_PRICE
FROM PRODUCT
WHERE PRODUCT_PRICE BETWEEN (
SELECT AVG(PRODUCT_PRICE)
FROM PRODUCT
)
AND 50000
ORDER BY PRODUCT_PRICE;

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

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

Find the derivative. f(x) 8 3 4 mix X O 4 x32 4 x32 3 -4x - x2

Answered: 1 week ago

Question

6. How do histories influence the process of identity formation?

Answered: 1 week ago