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
 SQL Server Development (2000)
 math with float

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-19 : 23:03:08
Richard writes "hi'a

converting mis from access-2000 to sql-2000, and having brain block with percentages.

'deliveries.refused_pcnt' should be 'cases_accepted / cases_rejected' as a percentage (apparently access has a percentage variable-type)

I changed it to numeric(6,3), then float. but always overflow error. By test script is . . .

declare @var float
set @var = sum(100/2175)*100
print @var

. . . probly real obvious, nevr-the-less I'd appreciate your help."
   

- Advertisement -