Viewing 13 posts - 16 through 28 (of 28 total)
This piece of code I have written so far, I want to count only the Round date
where [Has Meds] is equal to only [Has active Meds] (Stand alone).
So from the...
March 28, 2011 at 7:57 am
Select Region, Provider, QtrName, sum(cnt_allmed) as AllMed, count(*) as [Not Reconciled in 18 months],
cast(0 as decimal (9,4)) as [% of all Meds not reconciled]---0 as [% of all Meds not...
March 22, 2011 at 12:25 pm
Yes, it is an integer result, I want to have the average in 2 decimal places.
Thanks,
Haimanti
March 18, 2011 at 11:33 am
thanks, but I am getting tons of values after decimal. how to limit that.
March 18, 2011 at 11:24 am
Thanks a lot. It worked!!
February 11, 2011 at 1:53 pm
Select [Quarter Name], Region, [Provider Name],
SUM([Total Visisits Count]) as SumofVisitCounts, sum([100% reconciled]) as [100% Reconciled],
0 as tot_100pervisitscnt, 0 as PercentRecon
into #Final_table
from #SemiFinal_Table
group by [Quarter Name], Region, [Provider...
February 10, 2011 at 11:02 am
I am not getting the right results,
even though I modified...the CAST .
I have 0 as PercentRecon (place holder for updating this field) and then
Update #Final_Table ---select...
February 10, 2011 at 10:07 am
Sorry, it is not working.
Update #Final_Table ---select * from #Final_Table
SET PercentRecon = (CAST (tot_100pervisitscnt as decimal(8,4))/CAST(sumofvisitCounts as decimal (8,4)))
where sumofvisitCounts>0
giving me the error message
Arithmetic overflow...
February 10, 2011 at 9:05 am
Thank you very much. It WORKED!!!
February 9, 2011 at 2:27 pm
Thank you very much. It works.
February 2, 2011 at 7:30 pm
Hi,
I tried that but I am getting 3 visits in that case, which is not right, I should be getting only one visit because visit =1 for the same...
February 1, 2011 at 7:39 am
Viewing 13 posts - 16 through 28 (of 28 total)