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)
 trunc function in sql server

Author  Topic 

Hiral
Starting Member

1 Post

Posted - 2009-08-09 : 00:01:12
hi i hv tried trunc(15.29,1) in sql server..
In oracle it works & give me answer 15.2
How can i achive the same in sql server.


hrpatel

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-08-09 : 05:40:39
select round(15.29,1,1)

http://msdn.microsoft.com/en-us/library/ms175003(SQL.90).aspx


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -