DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: 1)ORA-00904: "E"."AVG" invalid identifier2)How 2 See Savepoints

Threaded View

  1. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote Originally Posted by lucky10101 View Post
    "Avg() is not a valid column on emp table"
    PAVB can you please explain me this
    Your syntax implies AVG is a column of EMP table -which is not; that's why you are getting ORA-00904: "E"."AVG" invalid identifier

    You do not qualify a function, you qualify a column name...

    e.avg(sal) <<< Wrong
    avg(e.sal) <<< Correct
    Last edited by PAVB; 07-13-2009 at 07:33 AM.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width