diff --git a/Music_Store_Query.sql b/Music_Store_Query.sql index 600345c..3195623 100644 --- a/Music_Store_Query.sql +++ b/Music_Store_Query.sql @@ -57,7 +57,7 @@ Return your list ordered alphabetically by email starting with A. */ SELECT DISTINCT email,first_name, last_name FROM customer JOIN invoice ON customer.customer_id = invoice.customer_id -JOIN invoiceline ON invoice.invoice_id = invoiceline.invoice_id +JOIN invoice_line ON invoice.invoice_id = invoice_line.invoice_id WHERE track_id IN( SELECT track_id FROM track JOIN genre ON track.genre_id = genre.genre_id @@ -71,8 +71,8 @@ ORDER BY email; SELECT DISTINCT email AS Email,first_name AS FirstName, last_name AS LastName, genre.name AS Name FROM customer JOIN invoice ON invoice.customer_id = customer.customer_id -JOIN invoiceline ON invoiceline.invoice_id = invoice.invoice_id -JOIN track ON track.track_id = invoiceline.track_id +JOIN invoice_line ON invoice_line.invoice_id = invoice.invoice_id +JOIN track ON track.track_id = invoice_line.track_id JOIN genre ON genre.genre_id = track.genre_id WHERE genre.name LIKE 'Rock' ORDER BY email;