Lab 7. Subqueries and Set Operations
CS122, Fall 2011


(30pt) Complete the following queries in SQL. Please put your queries in an SQL script file lab7.sql and upload it to CSNS at the end of the lab. Note that file uploading will be disabled automatically after 4:00pm, and late submission will not be accepted.

  1. Chapter 6, p.161, Exercise 1-5, 7.
  2. Chapter 5, p.139, Exercise 5. Note that if multiple track titles are tied for the longest, all of them should be included in the results.
  3. Complete the following queries without using joins:

[NOTES]