Menu
I have a table. Which has an index ID on it and a bunch of other data. I then have a second table with it’s own unique ID but also the parentID from table 1. In addition to this on table 2 I have a varchar and date column.
What I want to do it select all records from table 1. (easy) Then 1 row from table 2 for each corresponding parentID. The row I want is the the row with the latest date so sorting by date column and limiting to 1 record I assume.
How can I join the two tables, order and limit the second table only?