Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL problem

465334Apr 12 2007 — edited Apr 14 2007
Hi,

I have a table which has data in following format:

Name Indicator
A Y
A N
A N
B N
B N
C N
C N
D Y
D N

Now I have pick the names where indicator is N only.
If there is any Y with that name I have discard those records.
So from following example I should be picking name B and C.

I am unable to form a SQL query for this condition.

Please Help!!

Cheers
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2007
Added on Apr 12 2007
18 comments
675 views