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.
| Author |
Topic |
|
eugz
Posting Yak Master
210 Posts |
Posted - 2011-01-05 : 11:52:32
|
| Hi AllI have varchar(10) field with values:12.25452.3v5382v12.54and I would like to order it in ascending order. I want the output like this12.2582452.3v12.54v53If it is possible how it to do?Thanks |
|
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2011-01-05 : 12:08:21
|
| order by case when fld like 'v%' then 1 else 0 end, convert(float,replace(fld,'v',''))==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-01-08 : 01:49:49
|
| hope you'll not have any other characters coming inside values------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|