Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 18,686 of 19,505    |
|    Erland Sommarskog to Tony Johansson    |
|    Re: how to use case in sql query    |
|    09 Jul 12 23:47:16    |
      From: esquel@sommarskog.se              Tony Johansson (johansson.andersson@telia.com) writes:       > I tried below but I get error probably of not understanding this fully.              And the error message is? At a glance it looks correct, but you       know error messages are damned helpful at times.              Then again, Bob's suggestion is worth pursuing, since that could       permit the optimizer to use a plan that evades a sort. With long       ORDER BY you have, the sort is inevitable.                     --       Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se              Links for SQL Server Books Online:       SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx       SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca