Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a SQL query that retrieves the product _ id values from the sales table where the customer _ id is equal to 1 0

write a SQL query that retrieves the product_id values from the sales table where the customer_id is equal to 1002.
SQL Table with the following schema -
Tables Schema as Below:
sales
columnName dataType
id INTEGER
customer_id INTEGER
product_id INTEGER
sale_date DATE
amount DECIMAL(10,2)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Intermediate Accounting

Authors: James D. Stice, Earl K. Stice, Fred Skousen

16th Edition

324376375, 0324375743I, 978-0324376371, 9780324375749, 978-0324312140

Students also viewed these Databases questions