J
Jesper F
I've got it working using the exists word in a subselect.
But can I nest another Exists-sentence inside the first
one?
SELECT * FROM tableX WHERE EXISTS (SELECT * FROM tableY
WHERE tableX.itemID = tableY.itemID AND tableY.personID =
1)
I search for items in tableX where the itemIDs are present
in tableY AND the unitID in tableY should be present in
tableZ.
I'll elaborate if this is unclear. Thanks for any input.
But can I nest another Exists-sentence inside the first
one?
SELECT * FROM tableX WHERE EXISTS (SELECT * FROM tableY
WHERE tableX.itemID = tableY.itemID AND tableY.personID =
1)
I search for items in tableX where the itemIDs are present
in tableY AND the unitID in tableY should be present in
tableZ.
I'll elaborate if this is unclear. Thanks for any input.