Answered step by step
Verified Expert Solution
Link Copied!

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.
Q1: 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 constraint(s).
Q2. 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 constraint(s) are declared. (Enter A, B, C, or D)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions

Question

CFD is highly risky. Do you agree? Give reasons for your answer.

Answered: 1 week ago

Question

Consistently develop management talent.

Answered: 1 week ago

Question

Create a refreshed and common vision and values across Europe.

Answered: 1 week ago

Question

Provide the best employee relations environment.

Answered: 1 week ago