Home Forums SQL Server 2008 T-SQL (SS2K8) Order by with case RE: Order by with case
Nesuke
SSC Enthusiast
Points: 196
More actions
September 6, 2012 at 2:23 am
#1534292
Rather than trying to execute code in the aggregation of results, you'd be better off controlling the flow of your query with an IF EXISTS statement.