| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-12-20 : 07:47:27
|
| Michael writes "I have a varchar datatype that I need to sort in Numeric order.classroom11stansroom2michaelsclass134I want it to sort as...1classroom1stansroom24michaelsclass13" |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-12-20 : 08:31:05
|
Peso, you posted that when I was searching for that thread MadhivananFailing to plan is Planning to fail |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-12-20 : 08:37:30
|
Yes. I can be naughty sometimes.I had it already in my cache... , or at least among the 10 last posts on my profile page.Peter LarssonHelsingborg, Sweden |
 |
|
|
KenW
Constraint Violating Yak Guru
391 Posts |
Posted - 2006-12-20 : 14:11:31
|
Madhi,That's how his post count goes up so fast... He cheats! Ken |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-12-21 : 02:03:31
|
quote: Originally posted by KenW Madhi,That's how his post count goes up so fast... He cheats! Ken
Yes MadhivananFailing to plan is Planning to fail |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-12-21 : 02:31:36
|
| Speaking of that... I can't find a topic some weeks ago where I was involved in adding trailing "st", "nd", "rd", th".It was for all number, not just 1-20, but 1-1000. I remember x20, x21 and x22 were special cases.Does anyone remember this topic?Peter LarssonHelsingborg, Sweden |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-12-21 : 07:47:29
|
| Did you remember the suggestion you have given?Suppose you started with reply "Try this also"Then Do google search on "Try this also"+sqlteam+pesoMadhivananFailing to plan is Planning to fail |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-12-21 : 08:09:47
|
| Thanks! I tried with no luck.I remember we were a few helping out on that topic. I also remember there were a special case for 120, 121 and 122 not following same rule as 20, 21 and 22.Strange. Can't finfd it at all. Probably using wrong keywords when searching.Peter LarssonHelsingborg, Sweden |
 |
|
|
|