Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider our ski resort data example: PassHolder ( passID, name, age, streetAddress, city, state) Resort ( resortName, city, state, baseElevation, verticalFeet) Lift ( liftNumber, baseElevation,

Consider our ski resort data example:

PassHolder (passID, name, age, streetAddress, city, state)

Resort (resortName, city, state, baseElevation, verticalFeet)

Lift (liftNumber, baseElevation, topElevation, numSeats, speed)

ValidAt (passID, resortName )

PartOf (resortName, liftNumber

Rode (passID, liftNumber, date, time)

Write SQL queries for:

  1. Find the passID of pass holders whose pass is valid at each and every resort.
  2. Find the name of pass holders who have ridden every lift.
  3. Find the name of pass holders who have ridden every lift operated by Vail Resorts.
  4. Find the name and city of resorts that have at least one lift whose base elevation is below 9,000 feet.
  5. Find the name and state of pass holders that hold a valid pass for a resort that is located in the same state they live in.
  6. Find the resorts that have at least one lift whose top elevation is above 12,000 feet.
  7. Find the liftNumber of all lifts that have been ridden by pass holders that live in the city of Denver.

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_2

Step: 3

blur-text-image_3

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

2. Employees and managers participate in development of the system.

Answered: 1 week ago