Considering below tables and relationships:
parent --1:Many-- children --1:Many-- subchildren
- Parent may or many not have children records.
- children always have subchildren records.
I want to write a query to select parent names where any if matched parent.name,children.name or subchildren.name.
Here I understand I have to do a left outer join between parent and children. But what kind of join should I put between children and subchildren ?