Here is my SQL statement
SELECT ROUND(AVG(column_name), 100)
FROM [database].[dbo].[table]
The answer I retrieve is 3 with a possible range of numbers between 1 - 5 in 908 rows.
I need it to say 3.0 or 3.09. Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The average will have the same data type as the values, so cast the values: