filburt1
12-12-2002, 08:04 PM
What query returns the forumid,threadid,and title for the most recent thread in each forum?
1. Yes, I looked at the code for TECK's hack
2. Yes, I tried this:
SELECT t.title AS title, t.threadid AS threadid, f.forumid AS forumid
FROM thread t, forum f
WHERE t.forumid = f.forumid
GROUP BY f.forumid
ORDER BY dateline DESC
(it always returned the oldest one, not the most recent one)
1. Yes, I looked at the code for TECK's hack
2. Yes, I tried this:
SELECT t.title AS title, t.threadid AS threadid, f.forumid AS forumid
FROM thread t, forum f
WHERE t.forumid = f.forumid
GROUP BY f.forumid
ORDER BY dateline DESC
(it always returned the oldest one, not the most recent one)