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!

Query to display two columns data in single column

oracle.beginnerOct 6 2016 — edited Oct 6 2016

Hello ,

I have a table with two flags.

Table A

Id   first_flag      second_flag

1   y                         n

2   n                       y

3   y                       y

4   y                      y

i want to display the data like below

id 1 ----------- flag1 (first_flag ='Y' )

id 2 ----------- flag2 (second_flag =y)

id 3 ------------ flag1, flag2 (as both flag are Y)

id 4 ----------- flag1, flag2 (as both flag are Y)

can any one please help me out?

This post has been answered by Chris Hunt on Oct 6 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2016
Added on Oct 6 2016
15 comments
4,588 views