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
 General SQL Server Forums
 New to SQL Server Programming
 Need to get rid of decimals in columns of data

Author  Topic 

dirge86
Starting Member

1 Post

Posted - 2009-12-09 : 17:08:02
I have data in columns with decimals I want to get rid of. For example, 100.10 needs to be 10010
please help.

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-12-09 : 17:16:52
what is the data type?

Depending on data type, this may work

SELECT fieldName * 100 FROM yourTable
Go to Top of Page

Nageswar9
Aged Yak Warrior

600 Posts

Posted - 2009-12-09 : 23:52:49
Hi try this,

select replace(column,'.','') from table
Go to Top of Page
   

- Advertisement -