The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
What is the use of the join with the thread table?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|