I have a table in which there are the following 2 columns: sitm and pitm.
sitm is the child item, and pitm is the parent item. i would like to find all child items that are not parent items.
I would have thought that the following query would do this:
Code:
select sitm from lhpms010
where not exists (select pitm from lhpms010)
Anybody have any suggestions why this doesn't work? There are certainly items in the sitm column that are not in the pitm column...
steven.