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
 two decimal places.

Author  Topic 

MangoSkin
Starting Member

22 Posts

Posted - 2010-07-29 : 10:50:43
I have a decimal(20,5) column, I would like to get a select on that column to return the value with two decimal places. How can I do that?

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-07-29 : 10:57:29
[code]select convert(decimal(20,2),yourcolumn) from yourtable[/code]
Go to Top of Page
   

- Advertisement -