7th Assessment
7th Assessment
Advanced Database
Question One: 5 marks (ILOs 2.1,2.2)
Consider the ER diagram in Figure 3.21, which shows a simplified schema for an airline
reservations system. Extract from the ER diagram the requirements and constraints that
produced this schema. Try to be as precise as possible in your requirements and
constraints specification.
Page 1 of 6
Question Two: 5 marks (ILO 1.2)
In Chapters 1 and 2, we discussed the database environment and database users. We
can consider many entity types to describe such an environment, such as DBMS, stored
database, DBA, and catalog/data dictionary. Try to specify all the entity types that can
fully describe a database system and its environment; then specify the relationship
types among them, and draw an ER diagram to describe such a general database
environment.
Question Three: 5 marks (ILO 3.1)
Design an ER schema for keeping track of information about votes taken in the U.S.
House of Representatives during the current two-year congressional session. The
database needs to keep track of each U.S. STATE’s Name (e.g., ‘Texas’, ‘New York’,
‘California’) and include the Region of the state (whose domain is {‘Northeast’, ‘Midwest’,
‘Southeast’, ‘Southwest’, ‘West’}). Each CONGRESS_PERSON in the House of
Representatives is described by his or her Name, plus the District represented, the
Start_date when the congressperson was first elected, and the political Party to which he
or she belongs (whose domain is {‘Republican’, ‘Democrat’, ‘Independent’, ‘Other’}). The
database keeps track of each BILL (i.e., proposed law), including the Bill_name, the
Date_of_vote on the bill, whether the bill Passed_or_failed (whose domain is {‘Yes’,
‘No’}), and the Sponsor (the congressperson(s) who sponsored—that is, proposed—the
bill). The database also keeps track of how each congressperson voted on each bill
(domain of Vote attribute is {‘Yes’, ‘No’, ‘Abstain’, ‘Absent’}). Draw an ER schema
diagram for this application. State clearly any assumptions you make.
Page 2 of 6
Question One:
3.19 Consider the ER diagram of Figure 3.20, which shows a simplified schema for an
airline reservations system. Extract from the ER diagram the requirements and
Answer:
(1) The database represents each AIRPORT, keeping its unique AirportCode, the
AIRPORT Name, and the City and State in which the AIRPORT is located.
(2) Each airline FLIGHT has a unique number, the Airline for the FLIGHT, and the
Weekdays on which the FLIGHT is scheduled (for example, every day of the week
(3) A FLIGHT is composed of one or more FLIGHT LEGs (for example, flight number
CO1223 from New York to Los Angeles may have two FLIGHT LEGs: leg 1 from New
York to Houston and leg 2 from Houston to Los Angeles). Each FLIGHT LEG has a
CO1223 leg 1 on July 30, 1989). The actual Departure and Arrival AIRPORTs
and
Times are recorded for each flight leg after the flight leg has been concluded. The
Page 3 of 6
Number of available seats and the AIRPLANE used in the LEG INSTANCE are
also
kept.
(6) Information on AIRPLANEs and AIRPLANE TYPEs are also kept. For each
AIRPLANE
Maximum Number of Seats are kept. The AIRPORTs in which planes of this
type
CAN LAND are kept in the database. For each AIRPLANE, the AirplaneId, Total
Page 4 of 6
Question Two:
Page 5 of 6
Question Three:
Page 6 of 6