January 16, 2013 at 7:16 am
or...
ORDER BY RIGHT(SPACE(20)+BipolarNumbers,20) ASC
Far away is close at hand in the images of elsewhere.
Anon.
January 16, 2013 at 7:58 am
David Burrows (1/16/2013)
or...
ORDER BY RIGHT(SPACE(20)+BipolarNumbers,20) ASC
I was thinking something like that. Didn't get as far as actually writing (or testing) it though 🙂
January 16, 2013 at 5:28 pm
David Burrows (1/16/2013)
or...
ORDER BY RIGHT(SPACE(20)+BipolarNumbers,20) ASC
+1
My thought question: Have you ever been told that your query runs too fast?
My advice:
INDEXing a poor-performing query is like putting sugar on cat food. Yeah, it probably tastes better but are you sure you want to eat it?
The path of least resistance can be a slippery slope. Take care that fixing your fixes of fixes doesn't snowball and end up costing you more than fixing the root cause would have in the first place.
Need to UNPIVOT? Why not CROSS APPLY VALUES instead?[/url]
Since random numbers are too important to be left to chance, let's generate some![/url]
Learn to understand recursive CTEs by example.[/url]
[url url=http://www.sqlservercentral.com/articles/St
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply