Hi,
I have the following 4 queries that I'm executing
separetly, however I'd like to connect those 4 queries into
one and retrieve it. How would I go about it ?
I've tryed UNION, INNER JOIN, etc. but can't get it to work.
The DB is MySQL 3.23.
SQL_1 = "SELECT COUNT(ID) AS TOTAL_USERS FROM TABLE_USERS"
SQL_2 = "SELECT COUNT(ID) AS TOTAL_TOPICS FROM TABLE_TOPIC"
SQL_3 = "SELECT COUNT(ID) AS TOTAL_REPLY FROM TABLE_REPLY"
SQL_4 = "SELECT COUNT(ID) AS TOTAL_FORUMS FROM TABLE_FORUM"
Thanks for your help.
I have the following 4 queries that I'm executing
separetly, however I'd like to connect those 4 queries into
one and retrieve it. How would I go about it ?
I've tryed UNION, INNER JOIN, etc. but can't get it to work.
The DB is MySQL 3.23.
SQL_1 = "SELECT COUNT(ID) AS TOTAL_USERS FROM TABLE_USERS"
SQL_2 = "SELECT COUNT(ID) AS TOTAL_TOPICS FROM TABLE_TOPIC"
SQL_3 = "SELECT COUNT(ID) AS TOTAL_REPLY FROM TABLE_REPLY"
SQL_4 = "SELECT COUNT(ID) AS TOTAL_FORUMS FROM TABLE_FORUM"
Thanks for your help.