Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the following relations for a simple airport database ( primary keys are in bold and underline ) . Hangars ( hangNo capacity, location, status
Consider the following relations for a simple airport database primary keys are in bold and underline
Hangars hangNo capacity, location, status
AirplaneTypes Model capacity, weight
Airplanes regNo model, hangNO
Owners owner name, address, phone, ssn
Owns regNo ownID startedDate
There are four foreign keys for this database:
the attribute hangNo of the relation Airplanes that references the relation Hangars,
the attribute model of the relation Airplanes that references the relation AirplaneTypes,
the attribute regNo of the relation Owns that references the relation Airplanes, and
the attribute ownID of the relation Owns that references the relation Owner.
Q: Write SQL statements to define the above relation Hangars. You should choose a suitable data type and or data size for each column and be sure to declare appropriate integrity constraints
Q Which of the following SQL statement is used to define the above relation Airplanes? Ensure that the data type and size for each attribute are appropriate and integrity constraints are declared. Enter A B C or D
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