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 2000 Forums
 Transact-SQL (2000)
 sql formula

Author  Topic 

kamaldeshapryia
Starting Member

3 Posts

Posted - 2010-06-10 : 09:04:55
please let me how i can round down a mount in Sql tabel

Eg : Amount 1751.35 Should round down to 1750.00

I need to know Sql query to solve this issue

Thank you

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-06-10 : 09:16:45
What do you want for 1757.35 ?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2010-06-10 : 09:55:12
select round(1751.35, -1)
Go to Top of Page

kamaldeshapryia
Starting Member

3 Posts

Posted - 2010-06-14 : 02:04:40
quote:
Originally posted by madhivanan

What do you want for 1757.35 ?

Madhivanan

Failing to plan is Planning to fail

Go to Top of Page

kamaldeshapryia
Starting Member

3 Posts

Posted - 2010-06-14 : 02:05:38
it's also should be 1750.00
kamal
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-06-14 : 03:11:55

select floor(1757.35/10)*10

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -