|
-
May 17th, 2006, 11:48 AM
#8
Re: Using SUM, why do I need two queries for one result
The SUM() without the GROUP BY is a SUM() of the entire table - but limited by the WHERE clause.
The SUM() with a GROUP BY gives a different SUM() for each row - a SUM() related to the GROUP BY fields.
So I do not understand how you can be doing both - or even trying to do both.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|