Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!