![]() |
Need a JOIN Query
I know nothing about JOIN queries and the more I read the worse off I am. Here is what I need.
I have 2 tables, one called post and one called thread. When a new "thread" is posted it is assigned a threadid (that is the column name). When a post is replied to the thread, the post table gets the threadid in a column called tid along with other information. I need a query that will do the following: 1. For each threadid in table thread, give me the total posts for that thread in the post table. 2. Give me the last (most recent) row for each threadid=tid Here is the query I have tried (with several iterations) with no luck: PHP Code:
|
PHP Code:
|
What is the use of the join with the thread table?
|
All times are GMT. The time now is 11:20 AM. |
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:
|