Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relations for an online flight booking system. The primary keys are underlined. All attributes are of type string if not indicated otherwise.

image text in transcribed

Consider the following relations for an online flight booking system. The primary keys are underlined. All attributes are of type string if not indicated otherwise. (Hint: Use multi-step/multi- line queries to ease the formulation of queries. Use the rename operator p to give intermediate query results a name.] Company (company_ID, company_name, location) Flight (company ID, flight_number, destination, price: integer, number_of_seats: integer) O A company usually has several flight airlines. Book (company_ID, flight_number, customer_ID, date) Customer (customer_ID, name, address) 1. [4 points] Find the names of customers who have booked flights at every company in the US. 2. [3 points] Find the names of customers who never booked a flight. 3. [6 points] Find the names of customers who booked the flight to New York more than once. 4. [4 points) Find the names of the companies that have the biggest (in terms of the number of seats) airplane. 5. [4 points] Find the names of customers who booked flights to Boston and Seattle. 6. [4 points] Find all destinations (unequal to Gainesville) of cheap flights (

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

More Books

Students also viewed these Databases questions

Question

Identify the reagents a?c in the following scheme: CH Br CH CH C CH

Answered: 1 week ago

Question

What is job rotation ?

Answered: 1 week ago