![]() |
I suck at MySQL JOINS, can someone gimme a hand?
How would I compress these four queries into one?
PHP Code:
PHP Code:
Thank you in advance for the assistance! )O( Cloudrunner )O( |
Can you explain in English what specifically you are you trying to do (i.e., what data you are trying to retrieve)?
|
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 :D |
You can not combine counts from different types of data into 1 query i think.
|
I dont think this is right:
PHP Code:
I learnt SQL half a year ago and almost forgot complex parts +_+ |
All times are GMT. The time now is 09:32 PM. |
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:
|