Fatigue doesn't let me find this ... Say you have the following tables:
Parent
Child
- CHILD_ID (LONG)
- PARENT_ID (LONG, FK)
- HAS_GRADUATED (BOOLEAN)
I want the query to return the following true (1, in the case of Oracle) if the parent has at least one child that has finished, and false (0, in the case of Oracle) if the parent does not have a child that has finished, or has no children at all :
PARENT_ID ................ HAS_CHILDREN_WHO_GRADUATED
5 ................................. 1
3 ................................. 1
6 ................................. 0
twenty
parent_id = 5 >= 1 , . parent_id = 3. parent_id = 6 , , .
?