Hello
I would like to return the sum but I am returning individual records with "1"
this returns 9 rows containg the "1"
what I want is 1 record containing the 9 (the sum)
Thanks in advance
Dave
(sorry, I accidentally posted this same question as a response to an earlier post)
I would like to return the sum but I am returning individual records with "1"
Code:
select
(count (distinct( DirstatPolState+DirstatPolAcctNbr+PolSerialNbr+XdirstatPolicyYear) ))
from dirstat_record_bk1yr
where
dirstatcoverage=94
and DirstatPolState = 37
group by
DirstatPolState+DirstatPolAcctNbr+PolSerialNbr+XdirstatPolicyYear
having sum(XdirstatWritPrem) > 0 and
sum(XdirstatWritPrem) < 25000
this returns 9 rows containg the "1"
what I want is 1 record containing the 9 (the sum)
Thanks in advance
Dave
(sorry, I accidentally posted this same question as a response to an earlier post)