SQL combine to summations queries?

From: Date: Thu, 06 Sep 2001 15:38:21 +0000
Subject: SQL combine to summations queries?
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-12226@lists.php.net to get a copy of this message
Hello, I don't understand the following, who can help? I have got two queries: SELECT SUM(fielda) FROM table1 and SELECT SUM(fieldb) FROM table2 I thought this would be the same as: SELECT SUM(fielda.table1),SUM(fieldb.table2) FROM table1, table2. But, itn't, why? Tnx, Bas Jobsen

« previous php.db (#12226) next »