Answered step by step
Verified Expert Solution
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:
- Find the passID of pass holders whose pass is valid at each and every resort.
- Find the name of pass holders who have ridden every lift.
- Find the name of pass holders who have ridden every lift operated by Vail Resorts.
- Find the name and city of resorts that have at least one lift whose base elevation is below 9,000 feet.
- 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.
- Find the resorts that have at least one lift whose top elevation is above 12,000 feet.
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started