I think I would need some help. To simplify my problem, lets assume that I have two tables. First called "topics" with this structure:
idTopic author deleted
1 123 false
2 132 false
and second callledd "texts" which looks like this:
idTopic idText datePosted
1 11 1
1 12 2
2 15 1
2 18 3
and what I need is to select the data for every topic with the data of newest text of this topic. So my output should be like this:
idTopic author deleted idText datePosted
1 123 false 12 2
2 132 false 18 3
so how should my sql query looks? I was trying to do some inner join with second table grouped by idTopic, but it didn't work.
Thanks
