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!

Only get row if all matches

SchuriikDec 7 2017 — edited Dec 12 2017

Hi community,

I got a table with a foreign key in it. This table has another column named status.

Now I only want to get the record with the foreign key once, when all records with the foreign key have status = 'open'.

My Table as example:

IDA_IDSTATUS
11Open
21-
32Open
42Open

Result I need:

A_IDStatus
2Open

I guess this is simple but I dont get it. Thanks!

Greetings

This post has been answered by Solomon Yakobson on Dec 7 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2018
Added on Dec 7 2017
32 comments
2,888 views