Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating percentages
Message
 
 
À
31/10/2011 10:13:31
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01527668
Message ID:
01527680
Vues:
32
>Thanks Naomi
>
>>In SQL Server division of 2 integers yields an integer. Try
>>
>>select @first_year_retention_rate = cast(@no_plan_rowcount as decimal(18,2))/@member_rowcount * 100
>>
>>print @first_year_retention_rate
>>
You're welcome.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform