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 2005 Forums
 Transact-SQL (2005)
 How to add trailing zeros 2 decimals

Author  Topic 

cplusplus
Aged Yak Warrior

567 Posts

Posted - 2008-05-18 : 19:31:25
In my select query for field ordernumber want to add two trailing zeros in the resultset, how can i add.

Thanks for the info.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-05-18 : 23:50:07
select cast(ordernumber as varchar(10)) + '00' from yourtable
Go to Top of Page
   

- Advertisement -