Question
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
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