Consider the following schema of an online flight

Assignment Help C/C++ Programming
Reference no: EM13380157

Consider the following schema of an online flight reservation agency.

Customer(cid, lastName, firstName, dob)

Flight(fid, airline, fromCity, toCity, stops, onTime)

Reservation(cid, fid, date)

Attribute dob is the customer's date of birth, stops is the number of stops (0-??) a flight requires, and onTime is a percentage (0-100) indicating how often a flight is on time. Keys are underlined.

The set {lastName, firstName, dob} is also a key for Customer. However, the set {airline, fromCity, toCity, stops, onTime} is not a key for Flight since an airline may provide, say, di_erent flights with two stops from Bu_alo to Orlando, one stopping in Atlanta and one in New York, both of which are always on time. Attributes cid and fid in Reservation are foreign keys referencing homonymous attributes in Customer and Flight, respectively. Write Relational Algebra queries only that find (each 6 marks, except last two which weight 8 marks - total 52 marks):

1. cid's of customers who reserved some flight to Boston and some flight to New York.

2. cid's of customers who reserved some flight to Miami or some flight to Houston, but not both.

3. cid's of customers who never reserved AirTran flights or flights to Houston.

4. cid's of customers who reserved every flight that is on time at least 85% of the time.

5. cid's of customers who reserved every flight that the customer with cid=5 reserved.

6. cid's of customers who reserved at least three distinct JetBlue flights to Miami.

7. Pairs of cid's of distinct customers who reserved the same flight and the first in the pair reserved before the second.

8. Pairs of cid's of distinct customers who reserved all the same flights. If (c1, c2) is returned, do not return (c2, c1).

152_Write Relational Algebra queries.png

Reference no: EM13380157

Questions Cloud

Introductionthis is an individual assignment in which you : introductionthis is an individual assignment in which you can explore the use of extensible files in web programming
The purpose of this assignment is to provide you with : the purpose of this assignment is to provide you with experience in some basic tasks of a systems analyst. this is
1 your experiences with the social networking sites like : 1. your experiences with the social networking sites like craig list etc etc?2. include how long you have been using
Question 1 use the attached database to provide the : question 1 use the attached database to provide the relational algebra which would list the requested information
Consider the following schema of an online flight : consider the following schema of an online flight reservation agency.customercid lastname firstname dobflightfid
1 what is the output of the following c programsnbspinclude : 1. what is the output of the following c programs?nbspinclude ltiostreamgtusing namespace stdint mainnbspnbspnbsp cout
1a describe the high level steps involved for decryption : 1.a describe the high level steps involved for decryption using a feistel cipher.b modify the pseudo code provided in
Have to write a small program that prompts the user to : have to write a small program that prompts the user to enter a temperature in degrees fahrenheit and then prints a
What kind of measurement scales ratio interval etc : what kind of measurement scales ratio interval etc. characterizes the following software measuresi. number of lines of

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd