Let's suppose 4 fields.
The name of the first field is "number' . and it is primary key.
The name of the second field is "topic".
The name of the third field is " title".
The name of the last field is "modify_time".
I like to make a list which is grouped by topic and ordered by the last modify time.
Let's look at the below code.
select min(number) as min_number, title, max(modify_time) as last_time.
group by topic
order by last_time
The outputing of the above code has a problem which is that the list of title is not matched to the list of min_number.
Although I hoped that each title is matched to each min_number in the list, it is unexpectedly matched to each last_timet.
Would you help me?