Topic: help for a SQL request
Hello,
Sorry to trouble you but I just cannot find a solution for a pretty straightforward SQL request I want to add in extern.php
I want to have a the last records for a set of records.
if I have the following table
idx relate_idx creation
1 2 3
2 3 2
3 2 1
4 4 4
5 2 5
I would like to sort my request according to the time AND to relate_idx but with only the last record (according to the time) in the relate_idx series.
so that the result would be
idx relate_idx creation
5 2 5
4 4 4
2 3 2
Hope this is clear. Once again sorry if this sounds basic to you but I just cannot find out how to make the SQL request.