NVM, I think I got it...
SELECT PRODUCT.Product_Description, PRODUCT.Standard_Price
FROM PRODUCT INNER JOIN Order_line ON PRODUCT.Product_ID = Order_line.Product_ID
WHERE PRODUCT.Product_ID IN
(
SELECT Order_line.Product_ID
FROM Order_line
Where Order_line.Product_ID=PRODUCT.Product_ID
)...
I need to use a subquery to create a list that shows the description and price for all products that were ever ordered. It should not show products that were never ordered.
This is what my relationships look like: http://s15.postimage.org/lfxn95hvt/test.png
Here's what I started with:
SELECT...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.