ng the ERD above, formulate queries to satisfy the following questions. Do not include NULL values.:  What are the last names and emails of all customer who made purchases in the store?  What are the names of each albums and the artist who created it?  What are the total number of unique customers for each state, ordered alphabetically by state?  Which states have more than 10 unique customers?  What are the names of the artists who made an album containing the substring "symphony" in the album title?  What are the names of all artists who performed MPEG (video or audio) tracks in either the "Brazilian Music" or the "Grunge" playlists?  How many artists published at least 10 MPEG tracks?  What is the total lengt

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Using the ERD above, formulate queries to satisfy the following questions. Do not include NULL values.:

  1.  What are the last names and emails of all customer who made purchases in the store?
  2.  What are the names of each albums and the artist who created it?
  3.  What are the total number of unique customers for each state, ordered alphabetically by state?
  4.  Which states have more than 10 unique customers?
  5.  What are the names of the artists who made an album containing the substring "symphony" in the album title?
  6.  What are the names of all artists who performed MPEG (video or audio) tracks in either the "Brazilian Music" or the "Grunge" playlists?
  7.  How many artists published at least 10 MPEG tracks?
  8.  What is the total length of each playlist in hours? List the playlist id and name of only those playlists that are longer than 2 hours, along with the length in hours rounded to two decimals.
playlists
Playlistid: INTEGER
Name: NVARCHAR(120)
invoices
customers
O Invoiceid: INTEGER
O Customerid: INTEGER
Customerid: INTEGER
InvoiceDate: DATETIME
BillingAddress: NVAR.
BillingCity: NVARCHA.
4 more columns.
FirstName: NVARCHAR(40)
LastName: NVARCHAR(20)
Company: NVARCHAR(80)
Address: NVARCHAR(70)
playlist_track
City: NVARCHAR(40)
State: NVARCHAR(40)
Country: NVARCHAR(40)
PostalCode: NVARCHAR(10)
Phone: NVARCHAR(24)
Fax: NVARCHAR(24)
Email: NVARCHAR(60)
Playlistid: INTEGER
Trackd: INTEGER
media_types
MediaTypeld: INTEGER
Name: NVARCHAR(120)
invoice_items
tracks
Invoiceltemid: INTEGER
Trackld: INTEGER
Name: NVARCHAR(200)
Invoiceld: INTEGER
Trackdd: INTEGER
SupportRepid: INTEGER
Albumid: INTEGER
UnitPrice: NUMERIC
genres
Quantity: INTEGER
Genreld: INTEGER
Name: NVARCHAR(120)
MediaTypeld: INTEGER
Genreld: INTEGER
Composer: NVARCHAR(220)
employees
Employeeld: INTEGER
LastName: NVARCHAR(20)
FirstName: NVARCHAR(20)
Title: NVARCHAR(30)
Milliseconds: INTEGER
Bytes: INTEGER
albums
Albumid: INTEGER
Title: NVARCHAR(160)
Artistid: INTEGER
UnitPrice: NUMERIC
ReportsTo: INTEGER
BirthDate: DATETIME
HireDate: DATETIME
artists
Artistid: INTEGER
Address: NVARCHAR(70)
Name: NVARCHAR(120)
7 more columns.
Transcribed Image Text:playlists Playlistid: INTEGER Name: NVARCHAR(120) invoices customers O Invoiceid: INTEGER O Customerid: INTEGER Customerid: INTEGER InvoiceDate: DATETIME BillingAddress: NVAR. BillingCity: NVARCHA. 4 more columns. FirstName: NVARCHAR(40) LastName: NVARCHAR(20) Company: NVARCHAR(80) Address: NVARCHAR(70) playlist_track City: NVARCHAR(40) State: NVARCHAR(40) Country: NVARCHAR(40) PostalCode: NVARCHAR(10) Phone: NVARCHAR(24) Fax: NVARCHAR(24) Email: NVARCHAR(60) Playlistid: INTEGER Trackd: INTEGER media_types MediaTypeld: INTEGER Name: NVARCHAR(120) invoice_items tracks Invoiceltemid: INTEGER Trackld: INTEGER Name: NVARCHAR(200) Invoiceld: INTEGER Trackdd: INTEGER SupportRepid: INTEGER Albumid: INTEGER UnitPrice: NUMERIC genres Quantity: INTEGER Genreld: INTEGER Name: NVARCHAR(120) MediaTypeld: INTEGER Genreld: INTEGER Composer: NVARCHAR(220) employees Employeeld: INTEGER LastName: NVARCHAR(20) FirstName: NVARCHAR(20) Title: NVARCHAR(30) Milliseconds: INTEGER Bytes: INTEGER albums Albumid: INTEGER Title: NVARCHAR(160) Artistid: INTEGER UnitPrice: NUMERIC ReportsTo: INTEGER BirthDate: DATETIME HireDate: DATETIME artists Artistid: INTEGER Address: NVARCHAR(70) Name: NVARCHAR(120) 7 more columns.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY