Microsoft
Software
Hardware
Network
Question : Exporting query and setting precision of values
I have a query which averages values using a group-by clause. The inputs are integers but the query results have long tails of decimals resulting from the average calculation. How do I export this query (to a text file) without all these decimals? How can I change the precision of the exported values to have, say, only 2 decimal places?
Answer : Exporting query and setting precision of values
Instead of using Avg(SomeColumn), in your query use Round(Avg(SomeColumn), 2)
Random Solutions
How to Improve search functionality in ASP.NET 1.1?
How to Use Abandoned Local Profile From Different Domain
If Statement on Control Source
BES 5.0.1 and Exchange 2010
Delphi5 & Crystal ReportVCL v8.5
how to install Ubuntu netbook, without a CD and USB drive?
Can't open my own attachment in Outlook
Display Last Modified Date of aspx vb.net 2.0 page via Footer Include
monitor AIX servers
confused about electricity and voltage