Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Module 3 you will be using an Entity Relationship Diagram as a guide for the databases that you will be running SQL queries on.
In Module 3 you will be using an Entity Relationship Diagram as a guide for the databases that you will be running SQL queries on. The ERD helps us to identify how the data is stored and related within a database. Using the following diagram we will practice how to read and understand an ERD. 1. The primary key, which is an attribute or attributes that uniquely identifies each row, is identified in the passenger table by using PK next to passengerlD.What is the primary key in the airport table? ANSWER 2. The relationship between passenger and frequent flyer awards is a one to many relationship. It could be read as follows: a. A passenger can have zero to many frequent flier awards. b. Frequent flyer awards correspond to 1 and only 1 Passenger. Notice the used when reading from frequent flyer to passenger this means that in this direction there is not an option for there to be zero passengers that relate to an award. c. Now it is your turn. Describe the relationship between ServiceFee and ServiceType ANSWER 3. An associative relationship between Flight and Passenger means that Flights can have many passengers and passengers can take many flights. The ticket table allows us to create a 1 to many relationship between these tables. We track this by using Foreign Keys that point back to the Primary Key. What are the Foreign Keys in the Ticket table? ANSWER 4. This particular ERD shows what fields are required by making them bold (NULL vs NOT NULL). In the Payment table what is not a required field? ANSWER In Module 3 you will be using an Entity Relationship Diagram as a guide for the databases that you will be running SQL queries on. The ERD helps us to identify how the data is stored and related within a database. Using the following diagram we will practice how to read and understand an ERD. 1. The primary key, which is an attribute or attributes that uniquely identifies each row, is identified in the passenger table by using PK next to passengerlD.What is the primary key in the airport table? ANSWER 2. The relationship between passenger and frequent flyer awards is a one to many relationship. It could be read as follows: a. A passenger can have zero to many frequent flier awards. b. Frequent flyer awards correspond to 1 and only 1 Passenger. Notice the used when reading from frequent flyer to passenger this means that in this direction there is not an option for there to be zero passengers that relate to an award. c. Now it is your turn. Describe the relationship between ServiceFee and ServiceType ANSWER 3. An associative relationship between Flight and Passenger means that Flights can have many passengers and passengers can take many flights. The ticket table allows us to create a 1 to many relationship between these tables. We track this by using Foreign Keys that point back to the Primary Key. What are the Foreign Keys in the Ticket table? ANSWER 4. This particular ERD shows what fields are required by making them bold (NULL vs NOT NULL). In the Payment table what is not a required field
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