Click here to Skip to main content
15,892,005 members
Articles / Database Development

Dynamic ORDER BY with multiple criteria in T-SQL

Rate me:
Please Sign up or sign in to vote.
3.86/5 (3 votes)
28 May 2013CPOL2 min read 35.1K   8  
How to use a CASE statement in ORDER BY to avoid dynamic SQL

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) EVO Payments International
United States United States
Full stack developer on .Net and related technologies with heavy emphasis on back-end API development and integrations.

Comments and Discussions