on 02-15-2017 6:43 AM
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
Hi
I would try the same sql query but I delete the group by clausule.
Kind regards
Agustín
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.