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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -