I want to be able to loop over a list and return a single row where all the list elements have matched.
e.g.
lest say my list of id’s is 1,2,3 I want to write an SQL statment that will do the following (without breaking).
SELECT id1
FROM TBL
WHERE 0=0
AND id2 = 1
AND id2 = 2
AND id2 = 3
Is this possible?
Thanks in advance
Do you mean that you want all
id1records for which there is a matchingid2=1and a matchingid2=2and a matchingid2=3?Returns
Is that what you need?