Re: SQL combine to summations queries?

From: Date: Thu, 06 Sep 2001 15:55:23 +0000
Subject: Re: SQL combine to summations queries?
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-12227@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? I think you mean table1.fielda rather than fielda.table1. > Tnx, > > Bas Jobsen > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#12227) next »