Lab 3. More Joins
CS122, Summer 2007
(24pt) Complete the following queries in SQL. Please put your
queries
in an SQL script file lab3.sql.
and upload it to CSNS
at the end of the lab. Note
that file uploading will be disabled
automatically after 11:30am, and late submission will not be accepted.
- List the names of all the tracks in the "alternative" genre.
- Find the name of the artist who recorded the song "Shoes".
- List the names of the artists and the titles of the CDs they
recorded. If an artist hasn't recorded a CD yet, put "N/A" in the CD
title column.
- List the names of the members whom the salesperson Lisa Williams is in charge of.
- List the names of the sales people who are supervised by Scott Bull.
- Find the artist groups that are located in the same region as the studio "Pacific Rim".
- Find out whether the song "25" and the song "Song 8 and 1/2" are on
the same CD. The result should be either the name of the CD or empty
(i.e. no result).
- Find out whether the song "25" and the song
"Song 8 and 1/2" are recorded by the same artist. The result should be
either the name of the artist or empty (i.e. no result).
- (extra credit) Find the artist groups that consist of only male members.