|
-
 Originally Posted by lucky10101
"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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|