How to Get ID Where each value of Flag Field is 1 for that ID
478924Dec 26 2005 — edited Dec 30 2005I have a table in the following form
ID Flag
1 1
1 1
1 0
2 1
2 1
I have to write a query that will return the ID Whose All Flags Values are 1. i.e if i run the query on the above table it must return 2.
If there is Flag for a specific ID equal to 0 it must return empty.
Please Help me.
Regards,
Ahmad Jalil Qarshi