Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 what wrong with this code?

Author  Topic 

jeff06
Posting Yak Master

166 Posts

Posted - 2007-11-14 : 17:05:01
declear @tib numeric

set @tib=select stdev(actionpersubmission/total)
from
(
select actionpersubmission, (select sum(actionpersubmission) from #tib1 ) as total
from #tib1 t
) as a

I want to get the standard deviation.
Thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-11-14 : 17:15:09
[code]SELECT @tib = STDEV(ActionPerSubmission)
FROM #tib1[/code]


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -