1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] SQL AVG returning an int

Discussão em 'Outras Linguagens' iniciado por Stack, Outubro 9, 2024 às 08:52.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página