Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

group by

Former Member
0 Likes
348

Can sum statement be used in reports instead of the “ group by “ statement?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
320

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.

1 REPLY 1
Read only

Former Member
0 Likes
321

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.