There is table A with records-parents. In table B are records-children for records from table A, the relationship between them by parent ID. Children can have the status "open" or "closed". A parent can have multiple children in table B.
How to display records from table A that have all children in table B closed? Otherwise do not display