The editorial team is writing a feature about the most prolific artists in the catalog. Find artists who have released more than 10 Album.
Write a SQL query that identifies artists with more than 10 Album. Show the artist name and their album count, ordered by album count descending.
| Column | Type |
|---|---|
| ArtistId | INTEGER (Primary Key) |
| Name | TEXT |
| Column | Type |
|---|---|
| AlbumId | INTEGER (Primary Key) |
| Title | TEXT |
| ArtistId | INTEGER (Foreign Key → Artist.ArtistId) |
HAVING is like WHERE, but for filtering groups after GROUP BY. Use HAVING when you need to filter based on aggregate functions.
Ready to take your skills to the next level? Enroll in our comprehensive Data Analyst Career Track to master SQL, Python, Excel, and Power BI.
Run your code to see the result here.