The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Query help
Hey guys,
I'm running a contest in my forum that ends tonight. I need some help assembling a query I am going to use to get into Excel so I can do a random drawing. Here is what I need (three pieces of information) List of distinct users that posted in a particular thread Their join date Their post count I have the first part figured out SELECT DISTINCT USER FROM POST WHERE THREADID = 'xxxxxxx' I figure I need some sort of join on the USER table (grabbing JOINDATE and POSTS) but I"m not quite that adept with SQL just yet... thanks in advance! --------------- Added [DATE]1322321429[/DATE] at [TIME]1322321429[/TIME] --------------- I think I figured it out Code:
SELECT DISTINCT post.username, user.posts, user.joindate FROM post INNER JOIN user ON post.userid=user.userid WHERE post.threadid='xxxxxxx' |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|