Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Realtional Calculus Question: Question: Hi There, this question above has had me stuck for the past couple of hours. It is suppose to be answered

Realtional Calculus Question:

image text in transcribedimage text in transcribed

Question:

image text in transcribed

Hi There, this question above has had me stuck for the past couple of hours. It is suppose to be answered with relational calculus. Any help is appreciated!

Consider the following relational schema for a travel agency CLIENT(ClientID, Client Name, Client City, ClientDiscountPct) stores the identifier, name, and residence city for each client as well as the percentage discount he/she qualifies for each booking TRAVELAGENTOAID, TAName, TACity, TACommissionPct) stores the identifier and base city for each travel agent as well as the percentage commission rate on each booking. FLIGHT (Flight Num, FromCity, ToCity, FromAirport, ToAirport) stores for each flight the flight number, the source and destination cities and air- ports. DAILYFLIGHTOFlight Num, Date, Seats, Price) stores for each day's flights the flight number, date, number of seats; and nominal price per seat. FlightNum is a foreign key referring to FLIGHT. BOOKING (Booking ID, Client ID, TAID, Flight Num, Date, NumSeats, Cost stores the identifier of each booking, the identifiers of the involved client, travel agent and flight, the number of seats booked, and the final cost to the client (this cost is equal to the price per seat times the number of seats less the client's dis- count). Client ID, TAID, and (FlightNum, Date) are foreign keys referring to CLIENT TRAVELAGENT, and DAILYFLIGHT respectively

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

Students also viewed these Databases questions

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago