Thanks
Result:
0.70710678118654757
--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Abraham" <bin...@yahoo.com> wrote in message
news:OVuvZ332...@TK2MSFTNGP11.phx.gbl...
SELECT type, STDEV(price)
FROM pubs..titles
GROUP BY type
STDEV is the sample standard deviation. If you need the population
standard deviation, use STDEVP instead.
SK
STDEV
Returns the statistical standard deviation of all values in the given
expression.
Syntax
STDEV ( expression )
Arguments
expression
Is a numeric expression. Aggregate functions and subqueries are not
permitted. expression is an expression of the exact numeric or approximate
numeric data type category, except for the bit data type.
This is a bit confusing. It means that you cannot include aggregates or
subqueries in the expression. Not that STDEV (or STDDEV is an alias) is not
an aggregate itself. It is listed in the section: Aggregate Functions as an
aggregate.
The initial description should probably read Aggregate function that
returns...
--
----------------------------------------------------------------------------
-----------
Louis Davidson (dr...@hotmail.com)
Compass Technology Management
Pro SQL Server 2000 Database Design
http://www.apress.com/book/bookDisplay.html?bID=266
Note: Please reply to the newsgroups only unless you are
interested in consulting services. All other replies will be ignored :)
"Abraham" <bin...@yahoo.com> wrote in message
news:OVuvZ332...@TK2MSFTNGP11.phx.gbl...