2. Question 6.4E Part A (25 points). Given the below EER model for the airline business...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Question 6.4E Part A (25 points). Given the below EER model for the airline business (also on Page 145), map the EER model to a relational model representation. Clearly indicate the primary and foreign key relationships. For the foreign key, indicate whether it is not NULL or NULL allowed. Name Location Belongs to Year of prod- uction Airport Type 10.n). Plane (1.1) 3 Letter Abbreviation Number of seats 1.0 (1.1) Employs Pilot (1. n) (D.A) assigned to is served by ID (0.n) (0.n Destination Employee Steward(ess) Flight (1.8) Home Address Is assigned to Departure (1.) Date of Birth ID Is valid for Name Flight Planner Customer Destination (1m) (1.1) Buys (0) Ticket Number of AirMiles Departure Price 3. DDL and DML SQL Statements (25 points) a) (15 points) Write DDL SQL statements to create the 12 relations from point 2, specifying the PK and FK constraints in your SQL commands, including not NULL/NULL allowed. You should execute your SQL statements in PostgreSQL to verify that the tables are created correctly, and paste your commands below. Type your answer here. b) (10 points) Write DML SQL statements to insert at least one row in each of the relations above. You should execute your SQL statements in PostgreSQL to verify that the rows are inserted successfully, and paste your commands below. Type your answer here. 2. Question 6.4E Part A (25 points). Given the below EER model for the airline business (also on Page 145), map the EER model to a relational model representation. Clearly indicate the primary and foreign key relationships. For the foreign key, indicate whether it is not NULL or NULL allowed. Name Location Belongs to Year of prod- uction Airport Type 10.n). Plane (1.1) 3 Letter Abbreviation Number of seats 1.0 (1.1) Employs Pilot (1. n) (D.A) assigned to is served by ID (0.n) (0.n Destination Employee Steward(ess) Flight (1.8) Home Address Is assigned to Departure (1.) Date of Birth ID Is valid for Name Flight Planner Customer Destination (1m) (1.1) Buys (0) Ticket Number of AirMiles Departure Price 3. DDL and DML SQL Statements (25 points) a) (15 points) Write DDL SQL statements to create the 12 relations from point 2, specifying the PK and FK constraints in your SQL commands, including not NULL/NULL allowed. You should execute your SQL statements in PostgreSQL to verify that the tables are created correctly, and paste your commands below. Type your answer here. b) (10 points) Write DML SQL statements to insert at least one row in each of the relations above. You should execute your SQL statements in PostgreSQL to verify that the rows are inserted successfully, and paste your commands below. Type your answer here.
Expert Answer:
Answer rating: 100% (QA)
Here is the relational model representation of the EER model for the airline business Airport AirportID PK Name 3LetterAbbreviation Location Employee ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Sales Depreciation Cost of goods sold Other expenses Interest Cash Accounts receivable Short-term notes payable Long-term debt Net fixed assets Accounts payable Inventory Tax rate Owners' equity 2021...
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
A torsion pendulum consists of a metal disk with a wire running through its center and soldered in place. The wire is mounted vertically on clamps and pulled taut. Figure a gives the magnitude ? of...
-
Air flows at Ma = 3 and p = 10 psia toward a wedge of 16° angle at zero incidence, as in Fig. P9.132 (a) If the pointed edge is forward, what is the pressure at point A? If the blunt edge is...
-
The Central Publishing Company is about to publish its first reference hook in managerial economics. It is now in the process of estimating costs. It expects to produce 10,000 copies during its first...
-
Two heat exchangers are being considered for installation in a chemical plant. It is projected that: For an effective interest rate of \(10 \%\), determine the uniform end-of-year maintenance for...
-
In Problem 12.7 on page 424, you used the plate gap on the bag sealing equipment to predict the tear rating of a bag of coffee. Perform a residual analysis for these data (stored in Starbucks). Based...
-
How do advanced separation techniques, such as membrane-based extraction and liquid membrane extraction, overcome limitations of traditional extraction methods, and what are their respective...
-
Charles Whyte commenced business on May 1 2019, making up his accounts to September 30 annually. The statement of the Profit or Loss Account for the first 17 months ended September 30,2020 is as...
-
Pickett Inc. forecasts the free cash flows (FCFS) (in millions) shown below. The weighted average cost of capital (WACC) is 8%, and the FCFS are expected to continue growing at a 3% rate after Year...
-
What is the cost formula Y = $ 2 3 , 0 0 0 + $ 8 X , total cost at an activity level of 7 , 0 0 0 units?
-
1. To begin, assume that it is now January 1, 1993, and that each bond in Table 1 matures on December 31 of the indicated year. Also, suppose each bond has a par value of $1,000, each it had a...
-
5 Bernard L. Madoff, through BLMIS, operated a Ponzi scheme inducing investors to open discretionary trading accounts with BLMIS for the ostensible purpose of buying and selling securities. No...
-
You are buying a home that costs $225,000. You can choose to obtain a 15-year mortgage or a 30-year mortgage. Assume the interest rate is 5% for both types of mortgages. a) What will be the monthly...
-
Perform an analysis on Starbucks: Business-level strategies Evaluate Starbucks product line, target market. Identify and explain business-level strategies. Functional-level strategies Assess the...
-
Benjamin Franklin, according to the American Bankers Association, left $5,000 to the residents of Boston in 1791, with the understanding that it should be allowed to accumulate for a hundred years....
-
Perform the operation by first converting the numerator and denominator to scientific notation. Write the answer in scientific notation. 7,200,00/0.000009
-
Carl and Jenny adopt a Russian orphan. The adoption takes 2 years and two trips to Russia and is final in 2012. They pay $6,000 in 2011 and $7,500 in 2012 of qualified adoption expenses, and have AGI...
-
In June of 2012, Maureen's house is vandalized during a long-term power failure after a hurricane hit the city. The president of the United States declares Maureen's city a disaster area as a result...
-
Diane is a single taxpayer who qualifies for the earned income credit. Diane has two qualifying children who are 3 and 5 years old. During 2012, Diane's wages are $17,100 and she receives dividend...
-
A regulation basketball is initially flat and is then inflated to a pressure of approximately \(24 \mathrm{lb} / \mathrm{in}^{2}\) absolute. Consider the air temperature to be constant at...
-
The presence of raindrops in the air during a heavy rainstorm increases the average density of the air-water mixture. Estimate by what percent the average air-water density is greater than that of...
-
Assume that the air volume in a small automobile tire is constant and equal to the volume between two concentric cylinders \(13 \mathrm{~cm}\) high with diameters of \(33 \mathrm{~cm}\) and \(52...
Study smarter with the SolutionInn App