Answer by Wouter van Nifterick for Having a problem pulling a MAX() value in...
select thread_id, p2.post_id as post_id, subject, user_id, username, dateline from posts join ( select MAX(post_id) as post_id from posts group by thread_id order by dateline DESC limit 10) as p2 ON...
View ArticleHaving a problem pulling a MAX() value in MySQL
Here's my query:SELECT thread_id, MAX(post_id) as post_id, subject, user_id, username, dateline FROM posts GROUP BY thread_id ORDER BY dateline DESC LIMIT 0,9;I'm trying to output the last 10 posts on...
View Article
More Pages to Explore .....