Question: SQL query Question 2: Write an equivalent query for the following query SELECT orderid FROM ORDERS WHERE customerid IN (SELECT customerid FROM CUSTOMERS WHERE city='So

SQL query

SQL query Question 2: Write an equivalent query for the following query

Question 2: Write an equivalent query for the following query SELECT orderid FROM ORDERS WHERE customerid IN (SELECT customerid FROM CUSTOMERS WHERE city='So Paulo' ) OR orderid in (SELECT orderid FROM ORDERDETAILS, SUPPLIERS,PRODUCTS WHERE ORDERDETAILS.productid=PRODUCTS.productid AND PRODUCTS.supplierid=SUPPLIERS.supplierid AND city='So Paulo')

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!