Hello,
I have 3 tables
Table A - Parent Table
Table B - Child of A with a 1...n relationship
Table C - Child of A with a 1...n relationship
When I do a simple select
SELECT *
FROM table A x left outer JOIN
table B y on x.id = y.id left outer JOIN
table C z on x.id = z.id
It will return multiple records because of the 1...n relationship between the parent and child. I need to be able to return the max record for each child table so I only get 1 unique record for each parent record? Any help would be greatly appreciated
I have 3 tables
Table A - Parent Table
Table B - Child of A with a 1...n relationship
Table C - Child of A with a 1...n relationship
When I do a simple select
SELECT *
FROM table A x left outer JOIN
table B y on x.id = y.id left outer JOIN
table C z on x.id = z.id
It will return multiple records because of the 1...n relationship between the parent and child. I need to be able to return the max record for each child table so I only get 1 unique record for each parent record? Any help would be greatly appreciated