Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Avg function and problems with it

728558Oct 17 2009 — edited Oct 18 2009
I know this may sound stupid since I'm pretty new to Oracle and SQL, but I'm trying to do a query with an average price and it's keeps giving me the error that group function not allowed here. Could someone point me in the right direction here. This is what I have but it keeps giving me that error.

SELECT productID productName, price
FROM our_product
WHERE AVG(price)<price;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2009
Added on Oct 17 2009
4 comments
802 views