Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A database schema features the following relations. Airline (AirlinePrex, Name, HQ, YearEstablished) Flight (AirlinePrex, FlightNumber, FromAirport, ToAirport, Depart, Arrive) Give the Relational Algebra expressions (NOT

A database schema features the following relations.

Airline (AirlinePrex, Name, HQ, YearEstablished) Flight (AirlinePrex, FlightNumber, FromAirport, ToAirport, Depart, Arrive)

Give the Relational Algebra expressions (NOT SQL) for each of the following.

You are free to decompose each answer into a series of expressions, utilizing intermediary results.

Provide a short explanation of why your relational algebra query does what you believe that it does.

Question 3(a): The Name and the YearEstablished of the Airline whose AirlinePrex is B6.

Question 3(b): The Name of all Airlines that were established in the same year as the Airline whose Prex is SQ.

Question 3(c): The AirlinePrex and FlightNumber of all ights FROM Boston (BOS) TO Dallas Fort Worth (DFW) that Depart between 5pm and 6pm.

Question 3(d): Identify the Airlines operating Flights BETWEEN Boston (BOS) and New York City (JFK), and that are Headquartered (HQ) in Chicago.

Question 3(e): Identify the Name of the Airlines that operate Flights from Tampa (TPA) to Chicago (ORD) that are scheduled to EITHER depart aVer 7am OR arrive before 2pm.

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

Have they worked with a facilitator before, with what result?

Answered: 1 week ago