How would I delete all the decimals from a column in SQL Server 2008?
If I have a column X_Coord
and had three rows with the value, how would I trim it so that there are NO decimals after the last whole number?
For example, let's say my table is called RCMP
, and the column is below:
X_Coord
---------------
- 5588790.77000
- 5588873.79000
- 5588943.71000
How would I remove the decimals in a single query?
I tried ROUND
, but that ends up making the values appear as ie 5588790.00000
.
I want it to appear as: 5588790
.