![]() |
Last thread
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: [sql] 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 [/sql] (it always returned the oldest one, not the most recent one) |
Use ASC not DESC, seems to work for me :)
|
Nope, still returns the first one.
|
Try
Code:
SELECT forum.*, thread.title as thtitle FROM forum |
That's TECK's
...but thanks, after changing his query a bit I got it to work. |
Quote:
|
All times are GMT. The time now is 10:35 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|