Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Encapsulating DESC/ASC Within CASE

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-12-04 : 08:13:32
J writes "How do I encapsulate the DESC/ASC within a CASE for dynamic ORDER BY clauses without having to implement dual CASE structures where one evaluates to NULL ASC and the second to myField DESC?"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2006-12-04 : 08:14:14
You can't. Dual case structures are the only way if you need to have dynamic order by.
Go to Top of Page
   

- Advertisement -