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
 Other SQL Server Topics (2005)
 Inverse Number

Author  Topic 

Peace2007
Posting Yak Master

239 Posts

Posted - 2008-06-24 : 04:44:26
Hi

I need a result of 1/3 as 0.3333 but select 1/3 as test
returns zero!! could you tell me how I can calculate inverse of a number and return as decimal?

Thanks in advance

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-06-24 : 04:45:26
select 1.0 / 3


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

Peace2007
Posting Yak Master

239 Posts

Posted - 2008-06-24 : 04:59:24
Thank youuuuuuuuuuuuu :)
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-06-24 : 09:10:18
http://sqlblogcasts.com/blogs/madhivanan/archive/2008/01/16/beware-of-implicit-conversions.aspx

Madhivanan

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

- Advertisement -