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 |
|
sent_sara
Constraint Violating Yak Guru
377 Posts |
Posted - 2008-08-25 : 04:43:40
|
| hi friends,can any 1 help 2 solve the below issue?From the numeric value,the logic need to be appliedis:round of 2 from the decimal and finally only 2 values need to comeEg:Text1 is of type varcharselect text1 from test1Text1**********10.00000000010.020000000abcdoutput should come as:Text110.0010.02abcd |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-08-25 : 04:46:14
|
[code]update tset text1 = convert(varchar(20), convert(decimal(20,2), text1))from yourtable twhere isnumeric(text1) = 1[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|