The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How would I compress these four queries into one?
PHP Code:
PHP Code:
Thank you in advance for the assistance! )O( Cloudrunner )O( |
#2
|
|||
|
|||
![]()
Can you explain in English what specifically you are you trying to do (i.e., what data you are trying to retrieve)?
|
#3
|
||||
|
||||
![]() Quote:
I'm looking for the total count of new users registered today, the total count of users visited, the total count of new threads since a users last visit, and the total count of new posts since a user's last visit all in one shot. I can do that easily with the first four queries, but I want to squish those four queries into one to cus everyone and their dog here gripes about multiple queries in a hack, so I figured if I could turn those four queries into one, no one could gripe ![]() |
#4
|
|||
|
|||
![]()
You can not combine counts from different types of data into 1 query i think.
|
#5
|
||||
|
||||
![]()
I dont think this is right:
PHP Code:
I learnt SQL half a year ago and almost forgot complex parts +_+ |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|