Eerd Erd Exercises A
Eerd Erd Exercises A
Question 1
ERT Playschool is a child daycare center. A parent registers their child or children at the school using a
registration form. A parent can submit more than one registration form. Each room in the daycare is
assigned an age group. For example an infant is under 1 year of age and toddlers are from 1 to 3 years of
age. A child is assigned to a room based on their age and availability of space. A room may be assigned
one or more employees. An employee can only be assigned to one room. The minimum number of
employees required for a room is determined by the number of children assigned to the room and the
child: staff ratio identified by the government. For example one employee can care for 5 infants or 8
toddlers.
Question 2
FastFlight Airlines is a small air carrier operating in three north-eastern states. FastFlight is in the
process of computerizing its passenger reservation system. The following data items have been
identified: reservation code, flight number, flight date, origin, destination, departure time, arrival time,
passenger name, seat number, and reservation agent number and reservation agent name. For
example, flight number 303, which is scheduled every Tuesday and Thursday, leaves Augusta, Maine, at
9:23am and arrives in Nashua, New Hampshire at 10:17am. You can assume that the Fast Freight
reservation system will detect automatically whether empty seats are available. Draw the Entity
Relationship Diagram for this system
Question 3
You are to model an online auction database system in which members (buyers and sellers) participate
in the sale of items. The data requirements for this system are summarized as follows:
• The online site has members who are identified by a unique member Id and are described by an email
address, their name, a password, their home address, and a phone number.
• A member may be a buyer or a seller. A buyer has a shipping address recorded in the database. A
seller has a ban, account number and routing number recorded in the database.
• Items are placed by a seller for sale and are identified by a unique item number assigned by the
system. Items are also described by an item title, an item description, a starting bid price, bidding
increment, the start date of the auction, and the end date of the auction.
• Items are also categorized based on a fixed classification hierarchy For example a modem may be
classified as COMPUTER/ HARDWARE/ MODEM. Buyers make bids for items they are interested in. A
bidding price and time of bid placement is recorded. The person at the end of the
auction with the highest bid price is declared the winner and a transaction between the buyer and
the seller may proceed soon after.
• Buyers and sellers may place feedback ratings on the purchase or sale of an item. The feedback
contains a rating between 1 and 10 and a comment. Note that the ratings are placed on a completed
transaction by the buyer or seller of the item in the transaction.
Design a Context Diagram, DFD level 1 and an EERD to model this information.
Question 4
Consider a database system for a baseball organization such as the major leagues. The data
requirements are summarized as follows:
• The personnel involved in the league include players, coaches, managers, and umpires. Each is
identified by a unique personnel id. They are also described by their first and last names along with the
date and place of birth.
• Players are further described by other attributes such as their batting orientation (left, right, or switch)
and have a lifetime batting average (BA).
• Within the players group is a subset of players called pitchers. Pitchers have a life time ERA (earned
run average) associated with them.
• Teams are uniquely identified by their names. Teams are also described by the city in which they are
located and the division and league in which they play (such as Central division of the American league).
• Games are played between two teams with one designated as the home team and the other the
visiting team on a particular date. The score (runs, hits, and errors) are recorded for each team. The
team with more number of runs is declared the winner of the game.
• With each finished game, a winning pitcher and a losing pitcher are recorded. In case there is a save
awarded, the save pitcher is also recorded.
• With each finished game, the number of hits (singles, doubles, triples, and home runs) obtained by
each player is also recorded.
Design a Context diagram, DFD and Entity-Relationship diagram for the baseball system.