mysql - SQL - Products with No Sales -
I am trying to list all the products that have not got any sales. I'm really close, but I'm trying to use the existing statement to display all the product IDs displayed in the product table, but not in the orderline table; And so there is no sale my code is as follows; Products from the product. Select product, enter productivity on the product. Productivity = orderline.producted where not present (orderline from orderline. Select the product type) Order by the producer
You can only export PRODUCT. PRODUCT WITH LEFT JOINSERLINE USING (productid) WHERE orderline.productid is the order of by product. All of the rows in productid
LEFT JOIN list product , even if the orderline . In that case, orderline contains all the columns in the NULL values that are the ones that you want in the result.
Comments
Post a Comment