in built function quer

  • Hi All,

    Got below error:

    'average' is not a recognized built-in function name.

    while executing the below query

    select avg(salary) from #employee

    Please advice me.

    Thanks in Advance.

    Regards,

    Faroz

  • i just ran the following

    select AVG(convert(float,id)) from sysobjects

    seems to work fine for me

    are you sure didn't type in

    select AVERAGE(salary) from #table - that would explain the error

    MVDBA

  • +1

    The Error is:

    'average' is not a recognized built-in function name.

    But I can't see 'average' anywhere in your query.

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

  • @mike-2 Vessey

    yeah am sure

    i didn't type Select Average(salary) from #employee

    Thanks for Mike Vessey and Vinu Vijayan

  • You sure are welcome....:-)

    Vinu Vijayan

    For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden[/url] 😉

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply