Вы находитесь на странице: 1из 1

Name:___________________________

CIS-182
Homework #6 – Subqueries
Complete the following queries. Turn in this sheet with your SQL code and screen prints.

1. Use subqueries to answer the following questions. Each query is worth three points.
a. Which drivers begin trips at the Olympia Transit Center with an Effective Date in January
2005?
b. Do any drivers use more than one bus on their run where the Bid Date is in September
2004?
c. Which drivers make trips that last longer than 45 minutes?
d. Which trips are operated by Phantoms and have an Effective Date in 2005?

2. Answer the same questions using inner- or natural joins (where clause is used for the
join). Each query is worth two points.

3. Five points:
Display trips with an Effective Date in 2005 made by Operators with less than nine years on
the job.

3/26/10

Вам также может понравиться