|
|
Question : SQL average reduced to two decimal places
|
|
Hello,
I don't know how tor reduce my result (f.e. 4.333333333) to two decimalplaces. could somebody please help me.
SELECT AVG(CAST(ant1 AS decimal)) AS avg1,.......
Thank you very much.
lanter007
|
Answer : SQL average reduced to two decimal places
|
|
Hi,
Try: SELECT ROUND(AVG(CAST(ant1 AS decimal)), 2) AS avg1,....
|
|
|
|
|