Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with creating the following SQL statements for Colonial Adventure Tours: 16. Display the Trip ID, trip name, and reservation ID for all

I need help with creating the following SQL statements for Colonial Adventure Tours:

16. Display the Trip ID, trip name, and reservation ID for all trips. All trips should be included in the result. For those trips that currently do not have reservations, the reservation ID should be left blank. Order the results by trip ID. I need help with creating the following SQL statem

17. Repeat exercise 8 but list the guide name only once and sort the guide names in order by last name

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

18. repeat exercise 10, but this time list only hiking trips in the state of New Hampshire(NH), list each trip only once, and sort the results in descending order by trip name.

(10. List the trip IDs and trip names for each pair of trips that have the same start location. (For example, one such pair would be trip ID 2 and trip ID 3, because the start location of both trips is Weathersfield.) The first trip ID listed should be the major sort key, and the second trip ID should be the minor sort key.)

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

CUSTOMER STATE POSTALCODE 03053 01101 06108 01854 14590 02919 03740 16412 04963 14592 02143 08226 02188 05148 04912 CUSTOMERNUM LASTNAME FIRSTNAME ADDRESS CITY . PHONE Click to Add - - - - 9 Old Mill Rd 2332 South St. Apt 3 132 Main St. #1 164A South Bend Rd. 345 Lower Ave 156 Scholar St. 76 Cross Rd 32 Sheep Stop St. 10 Greenfield St. 65 Granite St. 373 Highland Ave 1282 Ocean W 7 Cherry Blossom St. 18 Ark Ledge Ln. 24 Stump Rd 10 Old Main St. 132 South St. Apt 27 25 Stag Ro 12 Foster St. 51 Fredrick St. 154 Central St. 603-555-7563 413-555-3212 860-555-0703 781-555-8423 585-555-5321 401-555-4848 603-555-0456 814-555-5521 207-555-9643 585-555-0111 857-555-6258 609-555-5231 617-555-6665 802-555-3096 207-555-4507 802-555-3443 603-555-3476 860-555-9876 857-555-5532 585-555-0900 860-555-3234 Northfold Ocean Kasuma Arnold Sujata Ryan SpringfieldMA East Hartford CT Lowell Wolcott Johnstorn 102 103 McLean Morontoia Marchand Rulf Caron Josep Quinn RI ean Luc Rome 110 or Somerville Ocean City Weymouth Laura ones Vaccari Murakami Chau Gernowski Bretton-Borak Siam Hefferson Barnett Busa Peterson Brown alk NJ 116 Clement VT 120 Athens Cambridge Manchester NH Fairfield South Windsor CT Albion Vernon VT 122 Lar Karen Becca Brianne 03101 06824 06074 14411 CT 126 CT CUSTOMER STATE POSTALCODE 03053 01101 06108 01854 14590 02919 03740 16412 04963 14592 02143 08226 02188 05148 04912 CUSTOMERNUM LASTNAME FIRSTNAME ADDRESS CITY . PHONE Click to Add - - - - 9 Old Mill Rd 2332 South St. Apt 3 132 Main St. #1 164A South Bend Rd. 345 Lower Ave 156 Scholar St. 76 Cross Rd 32 Sheep Stop St. 10 Greenfield St. 65 Granite St. 373 Highland Ave 1282 Ocean W 7 Cherry Blossom St. 18 Ark Ledge Ln. 24 Stump Rd 10 Old Main St. 132 South St. Apt 27 25 Stag Ro 12 Foster St. 51 Fredrick St. 154 Central St. 603-555-7563 413-555-3212 860-555-0703 781-555-8423 585-555-5321 401-555-4848 603-555-0456 814-555-5521 207-555-9643 585-555-0111 857-555-6258 609-555-5231 617-555-6665 802-555-3096 207-555-4507 802-555-3443 603-555-3476 860-555-9876 857-555-5532 585-555-0900 860-555-3234 Northfold Ocean Kasuma Arnold Sujata Ryan SpringfieldMA East Hartford CT Lowell Wolcott Johnstorn 102 103 McLean Morontoia Marchand Rulf Caron Josep Quinn RI ean Luc Rome 110 or Somerville Ocean City Weymouth Laura ones Vaccari Murakami Chau Gernowski Bretton-Borak Siam Hefferson Barnett Busa Peterson Brown alk NJ 116 Clement VT 120 Athens Cambridge Manchester NH Fairfield South Windsor CT Albion Vernon VT 122 Lar Karen Becca Brianne 03101 06824 06074 14411 CT 126 CT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

How could assessment be used in an employee development program?

Answered: 1 week ago