In one of my queries it appears that the AVG function is returning an int.
select ..., AVG(e.employee_level)avg_level
How do I get it to return floating point values? I tried casting it but all my rows for avg_level were still integers.
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.
Try to do it like this:
Also i found this topic where you can find some another approach but i not used its and don’t know exactly whether works or not.