Show missing records
Posted by:
Luke Vader
Date: August 23, 2004 11:43AM
I know there's a way to do this, by unsure how:
Table A- 5 records (items in example)
Table B- 2 records of 5 from Table A (backorders)
I need a query that returns the 3 records in Table A that are not in Table B.
I've tried the following, but not showing the desired results.
SELECT
`items`.`QUANTB`,
`items`.`ITEM_ID`,
`backorders`.`lineID`
FROM
`backorders`
INNER JOIN `items` ON (`backorders`.`lineID` <> `items`.`ITEM_ID`)
WHERE
(`items`.`QUANTB` > 0)
group by
`items`.`ITEM_ID`
That's it
Thanks
Subject
Written By
Posted
Show missing records
August 23, 2004 11:43AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.