cancel
Showing results for 
Search instead for 
Did you mean: 

sales opportunity amount sum of one month

former_member229757
Participant
0 Kudos

Hi Friends

I want to generate a query of sales opportunity only won opportunities status. One month sum of all the amounts

query:

select sum(t0.maxsumloc) as tot from OOPR t0 where t0.slpcode='8' and t0.OpenDate between '01-15-17' and '02-15-17' and t0.Status='w' group by t0.slpcode,t0.OpenDate

Its showing 3 lines of sum . I need sum in single line

Thanks

Vinoth

Accepted Solutions (1)

Accepted Solutions (1)

agustin_marcoscividanes
Active Contributor
0 Kudos

Hi

I would try the same sql query but I delete the group by clausule.

Kind regards

Agustín

Answers (1)

Answers (1)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Try this,

select sum(t0.maxsumloc) as tot from OOPR t0 where t0.slpcode='8' and t0.OpenDate '01-15-17' and '02-15-17'
and t0.Status='w'

Regards,

Nagarajan