Skip to content
Advertisement

How to get around this error related to a CASE statement in my ORDER BY syntax?

I am using SQL Server 2014 and I am querying a linked server.

My T-SQL query stands as follows:

My issue is that I am getting the following error message when running the above T_SQL query:

How can I get around this error?

Advertisement

Answer

I don’t know where the nested case expressions are coming from. But an alternative formulation would use JOIN:

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement