Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calculating percentages
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01527668
Message ID:
01527670
Views:
39
Hi Nicolas,
 INT = INT/INT * 100
@no_plan_rowcount or @member_rowcount must be FLOAT

MartinaJ

>Whats wrong with this.
>
>
>PRINT @no_plan_rowcount  
>
>
>returns 816
>
>
>PRINT @member_rowcount
>
>
>returns 416
>
>
>select @first_year_retention_rate = @no_plan_rowcount/@member_rowcount * 100
>
>PRINT @first_year_retention_rate
>
>
>returns 0
>
>What am I doing wrong .
>
>Thanks
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform