SELECT AVG(variable) AS Expr1, SUM(variable) AS Expr2 FROM ...... 

result for AVG is 2, but it is not true, it must be 2.95. What is the problem, any idea?

1

1 Answer

Try

Select AVG(Cast(variable as Float)), SUM(variable) From Table 
2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy