The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
SQL to query multiple tables and generate a mailing list
Hello,
I want to generate a mailing list of the users in my vBulletin forum database. I actually need the username, email, usertitle and location of users who joined on a particular date and from a particular location. If I could get the output of the query downloaded to an excel file, that will be cool. How do I do it? The data I'm looking for is actually in multiple tables. So I need help with SQL queries using "join" of multiple tables. Any help? Thanks in advance. |
#2
|
||||
|
||||
Quote:
select u.username, u.email, u.usertitle, f.field2 from user u join userfield f using (userid) where f.field2='whatever location it is you are interested in' and date(from_unixtime(joindate)) = 'whatever date you want in YYYY-MM-DD format (eg 2006-04-04)' [/sql] |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|