|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
MySQL query question
ok... I have a little problem.
I want to run a select query. Example: SELECT DISTICT topic_id FROM posts ORDER BY topic_time DESC now, as expected, the order by doesn' t do anything. (except making the topic id go descending) but... if i go SELECT DISTINCT topic_id, topic_time FROM posts ORDER BY topic_time DESC I get the correct sort order, but now i have more than one rows for each topic_id (becuase the topic_time for the topic_id s are different) So... If you don't get what I said above, I'll try to now explain in just english. I want to select unique topic_id. However, i want to order them by topic_time. The topic_time for each topic_id is different. Can anyone help? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Message Boards w/o MySQL | iBob | Website Design/Showcase | 7 | 13-07-2003 02:00 |
| my idea of a question forum... | Ken Leung | General Forum | 12 | 30-11-2002 12:17 |
| MnM EASY Question of the Day Winners! | Mike Bonham | General Forum | 22 | 03-05-2002 21:21 |
| Chief Delphi Site Question | Mike Bonham | General Forum | 1 | 16-02-2002 22:18 |
| Rookie Programmer has question about the default code | DanL | Programming | 3 | 26-01-2002 19:59 |