Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
117 views

CIS182 Homework 6

This document appears to be instructions for a homework assignment on subqueries and joins in SQL. Students are asked to write SQL queries to answer questions about bus drivers and trips using subqueries and joins, and submit their code and screen prints for points. The questions include finding drivers starting trips at a specific location and date, drivers using multiple buses, trips lasting over 45 minutes, and trips by certain operators within a date range.

Uploaded by

rriness
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
117 views

CIS182 Homework 6

This document appears to be instructions for a homework assignment on subqueries and joins in SQL. Students are asked to write SQL queries to answer questions about bus drivers and trips using subqueries and joins, and submit their code and screen prints for points. The questions include finding drivers starting trips at a specific location and date, drivers using multiple buses, trips lasting over 45 minutes, and trips by certain operators within a date range.

Uploaded by

rriness
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 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

You might also like