any help is appreciated..
I have a table and a query collects certain records from that..I have to get certain records from these records by another query..
some body told me.. exists is the best way..
can anyone explain this statement ??
select * from table
where id = 'l'
exits (select 'x' from table
where id= 'm'
exists (select...so on....)))
in the select statemtn after exists i said 'x' are they displayed or not is my question...
thanks,
I have a table and a query collects certain records from that..I have to get certain records from these records by another query..
some body told me.. exists is the best way..
can anyone explain this statement ??
select * from table
where id = 'l'
exits (select 'x' from table
where id= 'm'
exists (select...so on....)))
in the select statemtn after exists i said 'x' are they displayed or not is my question...
thanks,