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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

SQL Query

WilliamsOct 18 2010 — edited Oct 21 2010
Hi Friends,

I have a table called xxxx and data as follows;

rownum w c name
------------------------------------------------------------
1 999 (null) aaa
2 (null) 222 aaa
3 911 (null) bbb
4 922 (null) bbb
5 (null) 111 bbb
6 933 (null) ccc
7 (null) 333 ddd
8 (null) 444 ddd


My Required o/p as follows;

rownum w c name
--------------------------------------------------------------
1 999 (null) aaa
2 (null) 222 aaa
3 911 (null) bbb
4 922 (null) bbb
5 (null) 111 bbb


Requirement Details are:
=========================

I want to display people who has both 'w and c'.... not just c or w...
from the example, name 'aaa' and bbb has both entries under 'w' and 'c' columns -> want to display these records

where as name ccc and ddd has either entries.... -> omit these records



Regards,
Williams

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 18 2010
Added on Oct 18 2010
10 comments
332 views