Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following is the correct query to get the order _ id from the order _ items table for the products having a

Which of the following is the correct query to get the order_id from the order_items table for the products having a product_price greater than $8500? SQL query
Select only one option
SELECT
ORDER_ID
FROM ORDER_ITEMS
WHERE PRODUCT_ID =(SELECT
PRODUCT_ID
FROM PRODUCT
WHERE PRODUCT_PRICE >8500);
SELECT
ORDER_ID
FROM ORDER_ITEMS
WHERE PRODUCT_ID NOT IN (SELECT
PRODUCT_ID
FROM PRODUCT
WHERE PRODUCT_PRICE >8500);
SELECT
ORDER_ID
FROM ORDER_ITEMS
WHERE PRODUCT_ID IN (SELECT
PRODUCT_ID
FROM PRODUCT
WHERE PRODUCT_PRICE >8500);

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

Samsung Galaxy S23 Ultra Comprehensive User Manual

Authors: Leo Scott

1st Edition

B0BVPBJK5Q, 979-8377286455

More Books

Students also viewed these Databases questions

Question

List the components of the strategic management process. page 72

Answered: 1 week ago