2007 Dec 23 9:18 AM
Can sum statement be used in reports instead of the group by statement?
2007 Dec 26 12:15 PM
Hi,
You use GROUP BY when you want to make use of aggregate operations eq min( ), max( ), sum ( ) etc.
eg select a b sum( c )
from mytable
group by a b
Each field in the select statement either needs to be listed in the GROUP BY clause, or have an aggregate function applied to it.
Kindly Award Points If You Find The Reply Helpful.
Cheers,
Chaitanya.
Hi,
You use GROUP BY when you want to make use of aggregate operations eq min( ), max( ), sum ( ) etc.
eg select a b sum( c )
from mytable
group by a b
Each field in the select statement either needs to be listed in the GROUP BY clause, or have an aggregate function applied to it.
Kindly Award Points If You Find The Reply Helpful.
Cheers,
Chaitanya.
2007 Dec 26 12:15 PM
Hi,
You use GROUP BY when you want to make use of aggregate operations eq min( ), max( ), sum ( ) etc.
eg select a b sum( c )
from mytable
group by a b
Each field in the select statement either needs to be listed in the GROUP BY clause, or have an aggregate function applied to it.
Kindly Award Points If You Find The Reply Helpful.
Cheers,
Chaitanya.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |