So I am trying to write a SQL statement as follows...
I need to Find a list of artist names, the number of CDs they have produced, and the average price for their CDs. Only returning results for artists with more than one CD.
Problem is every time i think ive got it I get an error reading "Operand should contain 1 column(s)", I feel as if I am being incredibly dense right now but if someone could help I would appreciate it so much.
Here is the code I have tried last..
SELECT Artist.artID, CD.cdPrice, Count(*)
FROM CD
INNER JOIN Artist
ON Artist.artID=(SELECT CD.artID, AVG(CD.cdPrice), COUNT(*)
as Count FROM CD GROUP BY CD.artID HAVING Count > 1)