Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting number of working hours
Message
 
 
À
20/04/2015 11:09:43
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01618554
Message ID:
01618781
Vues:
27
>>Use SUM (CAST(Temp.SecondValue as DECIMAL(22,2)) /3600)
>
>The CAST had to be done inside the SQL and not on the final calculation. Otherwise, we will not have the precision at first.

Did you see my updated message? CAST the value to SUM first, then divide by 3600.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform