Convert decimal number to INT SQL
Or you can replace the decimal point.
select cast(replace('3562.45', '.','') as integer)
This way, it doesn't matter how many decimal places you have.
Or you can replace the decimal point.
select cast(replace('3562.45', '.','') as integer)
This way, it doesn't matter how many decimal places you have.