I have a table:
Parent Child Educated
'P1', 'C1', 'YES'
'P1', 'C2', 'YES'
'P1', 'C3', 'NO'
'P2', 'C11', 'YES'
'P2', 'C12', 'NO'
'P3', 'C21', 'YES'
'P3', 'C22', 'YES'
'P4', 'C31', 'NO'
'P4', 'C32', 'NO'
Now, I need to find all the parents who have all their children educated, i.e, Educated='YES'.
Like in above case parent 'P3'
Can anyone suggest a query to fetch this