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 QUERY FOR HANDLE FLAGS

64636Apr 27 2007 — edited May 1 2007
Hello Everyone,

I need some help. I need to build a sql query to handle a flag field from one table. The table can have several records for the same person and for each record he can have either a Y or N in the flag field.

I am trying to, if possible, write a sql statement that will tell me that if the person has either Y or N flag in any of his records, I will say Y. If he only has N, I will say no.

I can manage this using a stored procedure but hoping that someone has already done this in sql only.

Thank you all for your help.

Randy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2007
Added on Apr 27 2007
26 comments
3,273 views