Question : Checking multiple values of subject - Oracle Sql

This problem maybe easier to describe by looking at the attached.

fig. 1
the sample table

fig 2.
the desired output

I'd like the query to return the subject_id of any subject which has no current plan. A subject may have multiple plans open at any time. If there is one or more 'Y' in the column (by subject) I don't want the subjects_id returning.

any help is appreciated.

Answer : Checking multiple values of subject - Oracle Sql

Should be something like this:
1:
2:
3:
Select distinct T.SubjectID
From Sample_Table as T
Where Not Exists (Select Subject_ID From Sample_Table Where Current = 'Y' And Sample_Table.Subject_ID = T.Subject_ID)
Random Solutions  
 
programming4us programming4us