Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For all problems, use the following schema: Musician(id, first_name, last name, instrument, band id Bandid, name, years together) Show(id, venue id, date) Played_in(band_id, show_id) Venue(id,

image text in transcribed

For all problems, use the following schema: Musician(id, first_name, last name, instrument, band id Bandid, name, years together) Show(id, venue id, date) Played_in(band_id, show_id) Venue(id, name, address) Album(id, name, year, band_id, genre_id) Genrelid, name, description) Song(id, name, album_id) Primary keys are in bold, foreign keys are in italics. For each problem, write a query once using relational algebra, and again using SQL 5. Find the names of all albums by bands who have played at the venue "The Hi-Dive". 6. Find the names of all songs by bands who have played at "The Gothic" and at "The Hi-Dive" 7. Find the names of albums that fit in the genre "Reggae" by bands containing a member whose instrument is Saxophone" 8. Find the name of bands who have been together 4 or more years, AND who have an album with more than 10 songs. For all problems, use the following schema: Musician(id, first_name, last name, instrument, band id Bandid, name, years together) Show(id, venue id, date) Played_in(band_id, show_id) Venue(id, name, address) Album(id, name, year, band_id, genre_id) Genrelid, name, description) Song(id, name, album_id) Primary keys are in bold, foreign keys are in italics. For each problem, write a query once using relational algebra, and again using SQL 5. Find the names of all albums by bands who have played at the venue "The Hi-Dive". 6. Find the names of all songs by bands who have played at "The Gothic" and at "The Hi-Dive" 7. Find the names of albums that fit in the genre "Reggae" by bands containing a member whose instrument is Saxophone" 8. Find the name of bands who have been together 4 or more years, AND who have an album with more than 10 songs

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Excel caculation on cascade mental health clinic

Answered: 1 week ago