Question: For this problem, we are using the Chinook Database again. (Remember to go the Helpful Links page on the course website for details about this

For this problem, we are using the Chinook Database again. (Remember to go the "Helpful Links" page on the course website for details about this database.)

Write a query that returns the Genres that I have purchased the most tracks of. I only care about genres that I've purchased at least 10 tracks. Please ignore any tracks costing a dollar or more (they are primarily TV shows). Please output two columns, the name of the genre ("Genre_Name") and the number of tracks purchased ("Number_Purchased"). Order from most purchases to least.

You need only need the tables: Track, Genre and Invoice Line. You may assume each row of invoice line has a quantity of 1.

140-00 Artist Artistid Name -9-00 Album Albumid Title Artistid MediaType Y MediaTypeId Name Track TrackId Name Albumid MediaT

Artist ArtistId Name Playlist PlaylistId Name Employee EmployeeId LastName FirstName Title Reports To BirthDate HireDate Address City State Country PostalCode Phone Fax Email K k

Step by Step Solution

3.44 Rating (144 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we will write an SQL query that joins the necessary tables and applies the giv... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!