You need to find which artist (artname) has the maximum average price (average cdprice). There are tables
I tried to write:
SELECT artname FROM cd, artist GROUP BY artname HAVING (SUM(cdPrice)/COUNT(cd.artid)) >= ALL(SELECT (SUM(cdprice)/COUNT(cd.artid)) FROM cd,artist ar WHERE ar.artid=cd.artid GROUP BY ar.artname); But it did not work out.

