Skip to Main Content

Oracle Database Discussions

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!

need Oracle code logic

916628Feb 9 2012 — edited Feb 12 2012
i have a single row sub query which returns row with del_flag as N. Now in my db, there are 2 rows getting added from the incoming feed with del_flag as Y & N.

So how can i modify the query to return the row with del_flag as N. if there is no row with del_flag as N, it should return the row with del_flag as Y.

Could some one help me on this.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 11 2012
Added on Feb 9 2012
17 comments
222 views