QL DATABASE    need the SQL statements FROM ATTACHED tables  List the trip name of each trip that has Miles Abrams as a guide.   2. For each reservation that has a trip date of July 23, 2016, list the customer’s last name, the trip name, and the start location. 3. List the reservation ID, trip ID, and trip date for reservations for a trip in Maine (ME). Use the IN operator in your query.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

SQL DATABASE 

 

need the SQL statements FROM ATTACHED tables 

  1. List the trip name of each trip that has Miles Abrams as a guide.

 

2. For each reservation that has a trip date of July 23, 2016, list the customer’s last name, the trip name, and the start location.

3. List the reservation ID, trip ID, and trip date for reservations for a trip in Maine (ME). Use the IN operator in your query.

4. Repeat Exercise 3, but this time use the EXISTS operator in your query.

5. Find the guide last name and guide first name of all guides who can lead a paddling trip

6. Repeat Exercise 5 but use aliases for the table names.

7. Find the trip name of all reservations for hiking trips and sort the results by trip name in ascending order.

8. List the number and name of each customer that lives in the state of New Jersey (NJ) and that currently has a reservation.

9.  Find the trip ID and trip name for each trip whose maximum group size is greater than the maximum group size of at least one trip that has the type Biking.

 

GUIDE
GUIDE NUM LAST NAME FIRST_NAME ADDRESS
CITY
STATE POSTAL CODE PHONE NUM HIRE DATE
TRIP
TRIP_ID TRIP_NAME
START_LOCATION
STATE DISTANCE MAX_GRP_SIZE TYPE
SEASON
CUSTOMER
CUSTOMER_NUM LAST_NAME
CITY
STATE POSTAL_CODE PHONE
FIRST_NAME ADDRESS
RESERVATION_ ID TRIP_ID TRIP_DATE NUM_PERSONS TRIP_PRICE OTHER_FEES CUSTOMER_NUM
TRIP_GUIDES
TRIP_ID GUIDE_NUM
Transcribed Image Text:GUIDE GUIDE NUM LAST NAME FIRST_NAME ADDRESS CITY STATE POSTAL CODE PHONE NUM HIRE DATE TRIP TRIP_ID TRIP_NAME START_LOCATION STATE DISTANCE MAX_GRP_SIZE TYPE SEASON CUSTOMER CUSTOMER_NUM LAST_NAME CITY STATE POSTAL_CODE PHONE FIRST_NAME ADDRESS RESERVATION_ ID TRIP_ID TRIP_DATE NUM_PERSONS TRIP_PRICE OTHER_FEES CUSTOMER_NUM TRIP_GUIDES TRIP_ID GUIDE_NUM
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY