Home Forums SQL Server 2008 T-SQL (SS2K8) Order by with case RE: Order by with case
mssqlsrv
SSCrazy
Points: 2375
More actions
September 6, 2012 at 5:11 am
#1534382
I think you can not use variable in order by clause.
Variables are only allowed when ordering by an expression referencing a column name.