Answers for "List all the items that have not been part of any purchase order. sql"

SQL
0

List all the items that have not been part of any purchase order. sql

SELECT DISTINCT I.*, ITO,itemID AS [NULL if never ordered]
FROM Items As I
LEFT JOIN
ItemsInOrder AS ITO
ON I.itemID=ITO.itemID
WHERE ITO,itemID IS NULL
Posted by: Guest on September-21-2021
0

List all the items that have not been part of any purchase order. sql

SELECT * FROM Items
WHERE itemID NOT IN
(SELECT itemID FROM ItemsInOrder)
Posted by: Guest on September-21-2021

Code answers related to "List all the items that have not been part of any purchase order. sql"

Code answers related to "SQL"

Browse Popular Code Answers by Language