I'm getting a domain error when using the STDEV function.
Seems to be keyed to specific numbers.
Here is an example of the data being used:
Create Table Test(
Code varchar(10),
Amt money )
go
set nocount on
declare @x int
set @x = 1
while @x < 10
begin
Insert into Test values...
Can't get this to work:
...
ORDER BY CASE v_OrderBy
WHEN 'Col1' THEN 1
WHEN 'Col2' THEN 2
ELSE 3
END DESC
Just seems to ignore the ORDER BY altogether.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.