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.

 All Forums
 SQL Server 2012 Forums
 Transact-SQL (2012)
 replace "-"

Author  Topic 

inbs
Aged Yak Warrior

860 Posts

Posted - 2013-03-11 : 14:07:15
i have data like 160-00 and i want to get 16000,how can i do it?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-03-11 : 14:12:05
assuming no other - character being present you can use
REPLACE(Field,'-','')

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -