The following tables form an instance of an Airport Database held in a relational DBMS: Airport...
Fantastic news! We've Found the answer you've been seeking!
Question:
![The following tables form an instance of an Airport Database held in a relational DBMS: Airport (airportID, name, city, state](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/02/63f89a143e889_1677236754733.png)
![11. Display the number of airports in each country. 12. Display, for each carrierlD, the number of flights and the average of](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/02/63f89a13f1689_1677236754418.png)
Transcribed Image Text:
The following tables form an instance of an Airport Database held in a relational DBMS: Airport Carrier Flight Airport airportID CDG DXB JFK LGA MIA SFO - Carrier carrierID AF DL EK US (airportID, name, city, state, country) (carrierID, name, fleetSize, employees, revenue) (carrierID, flightNo, date, time, airportID, destination, distance) name Charles de Gaulle Paris Dubai International Dubai John F Kennedy International New York LaGuardia New York Miami International Miami San Francisco International San Francisco Each airport name is unique in its country. DL AF US AF name Air France Delta Air Lines Emirates Airline US Airways fleetSize employees revenue 225 84,602 15,414 855 80,000 39,639 239 84,153 18,300 338 31,467 13,050 Each carrier name is unique in the whole world. Flight carrierID flightNo date DL DL DL EK US city state NULL NULL 426 10/16/2017 426 10/17/2017 NY NY FL CA country FRA UAE USA USA USA ISA time airportID destination 7:00 AM JFK SFO 7:00 AM JFK SFO 479 10/16/2017 7:25 PM JFK SFO 721 10/17/2017 11:25 AM CDG DXB 783 10/17/2017 3:20 AM DXB JFK 1472 10/17/2017 7:30 AM LGA MIA 3577 10/17/2017 5:45 PM JFK CDG 3577 10/17/2017 9:40 AM LGA SFO 3634 10/16/2017 1:20 PM CDG MIA Any (carrier ID, flightNo) combination is unique for the whole day. distance 2,586 2,586 2,586 3,259 6,843 1,099 3,629 2,576 4,580 11. Display the number of airports in each country. 12. Display, for each carrierID, the number of flights and the average of their distances. The following table lists (for each day) the number of flights, the earliest and the latest flight times in that day. date col2 col3 10/16/2017 3 7:00 AM 10/17/2017 6 3:20 AM col4 7:25 PM 5:45 PM I 13. What is the relational algebra expression that outputs the above relation? Let V and W be defined as follows: V = IIcarrierID, date, airportID (date-10/17/2017 (Flight)) W = IairportID (Ostate='NY' (Airport)) 14. Output the result of the expressions V, W, and V÷W. Make sure your output includes the attribute names.. V W V÷W The following tables form an instance of an Airport Database held in a relational DBMS: Airport Carrier Flight Airport airportID CDG DXB JFK LGA MIA SFO - Carrier carrierID AF DL EK US (airportID, name, city, state, country) (carrierID, name, fleetSize, employees, revenue) (carrierID, flightNo, date, time, airportID, destination, distance) name Charles de Gaulle Paris Dubai International Dubai John F Kennedy International New York LaGuardia New York Miami International Miami San Francisco International San Francisco Each airport name is unique in its country. DL AF US AF name Air France Delta Air Lines Emirates Airline US Airways fleetSize employees revenue 225 84,602 15,414 855 80,000 39,639 239 84,153 18,300 338 31,467 13,050 Each carrier name is unique in the whole world. Flight carrierID flightNo date DL DL DL EK US city state NULL NULL 426 10/16/2017 426 10/17/2017 NY NY FL CA country FRA UAE USA USA USA ISA time airportID destination 7:00 AM JFK SFO 7:00 AM JFK SFO 479 10/16/2017 7:25 PM JFK SFO 721 10/17/2017 11:25 AM CDG DXB 783 10/17/2017 3:20 AM DXB JFK 1472 10/17/2017 7:30 AM LGA MIA 3577 10/17/2017 5:45 PM JFK CDG 3577 10/17/2017 9:40 AM LGA SFO 3634 10/16/2017 1:20 PM CDG MIA Any (carrier ID, flightNo) combination is unique for the whole day. distance 2,586 2,586 2,586 3,259 6,843 1,099 3,629 2,576 4,580 11. Display the number of airports in each country. 12. Display, for each carrierID, the number of flights and the average of their distances. The following table lists (for each day) the number of flights, the earliest and the latest flight times in that day. date col2 col3 10/16/2017 3 7:00 AM 10/17/2017 6 3:20 AM col4 7:25 PM 5:45 PM I 13. What is the relational algebra expression that outputs the above relation? Let V and W be defined as follows: V = IIcarrierID, date, airportID (date-10/17/2017 (Flight)) W = IairportID (Ostate='NY' (Airport)) 14. Output the result of the expressions V, W, and V÷W. Make sure your output includes the attribute names.. V W V÷W
Expert Answer:
Answer rating: 100% (QA)
Airport Carrier and Flight and a set of relational algebra problems The problems ask for exp... View the full answer
Related Book For
Data Structures and Algorithms in Java
ISBN: 978-1118771334
6th edition
Authors: Michael T. Goodrich, Roberto Tamassia, Michael H. Goldwasser
Posted Date:
Students also viewed these accounting questions
-
Consider the following tables form part of a Library database held in an RDBMS: Book (ISBN, title, edition, year) BookCopy (copyNo, ISBN, available) Borrower (borrowerNo, borrowerName,...
-
USA Airlines is a major airline carrier for both domestic and international travel. The company guarantees the lowest price ticket for travel within the United States. In order to get the lowest...
-
Air France-KLM S.A. is an international airline headquartered in France with stock traded in both Paris and Amsterdam. It has more than 400 aircraft and more than 100,000 employees. On September 30,...
-
The regression of the X and Y equation is Y = 48.32 -2.105X, What is the slope of the data.
-
Green Day Corporation had income from continuing operations of $12,600,000 in 2004. During 2004, it disposed of its restaurant division at an after-tax loss of $189,000. Prior to disposal, the...
-
Why is Webers Law a challenge for green marketers?
-
Feng Company installs a computerized manufacturing machine in its factory at the beginning of the year at a cost of $42,300. The machines useful life is estimated at 10 years, or 363,000 units of...
-
In figure, show that there are wage rates and capital rental costs such that the firm is indifferent between using the wafer-handling stepper technology and the stepper technology. How does this...
-
1- Bad Debt Expense is reported on the income statement as: Select one: a. reducing gross profit. b. part of cost of goods sold. c. a contra-revenue account. d. an operating expense. 2- On a bank...
-
The sector rotates with the indicated angular quantities about a fixed axis through point B. Simultaneously, the particle A moves in the curved slot with constant speed u relative to the sector....
-
A company sells a plant asset that originally cost $ 350000 for $ 95000 on December 31, 2022. The accumulated depreciation account had a balance of $ 140000 after the current year's depreciation of $...
-
Monika has $6,000 in her investment account. She wants to withdraw her funds when her account reaches $10,000. If decrease in the rate of return what she will earns?
-
1. An 88.3-kg refrigerator rests on the floor. How much work is required to move it at constant speed for 2 23 m along the floor against a friction force of 216.1 N? 2. A hammerhead of mass in - 2.35...
-
Explain Briefly non-monetary cost and give two examples of how a company can use this as part of it's social marketing program.
-
Assume that the indirect quote is for 115 Japanese Yen per U.S. Dollar and that the direct quote is for 1.25 U.S. Dollars per Euro. What is the Yen per Euro exchange rate? What is the effect on a...
-
Sue made the following outright gifts during one year: $1,014,000 to her husband; $1,014,000 to her son; and $1,014,000 to charity. Assume an annual exclusion of $14,000 for the year of the gift....
-
what is the value today of a 20 year annuity that pays 230 a year. The annuity first payment costs seven years from today. the annual interest rate is 5% for year 1 through 6 and 10% thereafter. A)...
-
Listed below are common types of current liabilities, contingencies, and commitments: a. Accounts payable b. Bank loans and commercial paper c. Notes payable d. Dividends payable e. Sales and excise...
-
Repeat the previous problem for Kruskals algorithm. Repeat problem Draw a simple, connected, undirected, weighted graph with 8 vertices and 16 edges, each with unique edge weights. Illustrate the...
-
What are the minimum and maximum number of internal and external nodes in an improper binary tree with n nodes?
-
Give an example of a function that is plotted the same on a log-log scale as it is on a standard scale.
-
Muriel Santelli had recently been appointed controller of the breakfast cereals division of a major food company. The division manager, Ram Krishnamurthi, was known as a hard-driving, intelligent,...
-
Western Power is considering the replacement of an old billing system with new software that should save $5,000 per year in net cash operating costs. The old system has zero disposal value, but it...
-
Toyland Company was one of the original producers of Transformers. An especially complex part of Sect-a-con needs special tools that are not useful for other products. These tools were purchased on...
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App