Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 25

• Q1: Draw an ERD

• A Country bus Company owns a number of buses. Each bus is


allocated to a particular route, although Some routes may have
Several buses. Each route passes through a number of towns. One
or more drivers are allocated to each stage of a route, which
corresponds to a journey through some or all of the towns on a
route. Some of the towns have a garage where buses are kept and
each of the buses are identified by the registration number and can
carry different numbers of passengers, since the vehicles vary in
size and can be single or double-decked. Each route is identified by
a route number and information is available on the average number
of passengers carried per day for each route. Drivers have an
employee number, name, address, and sometimes a telephone
number.
Entities
• Bus - Company owns busses and will hold information
about them.
• Route - Buses travel on routes and will need described.
• Town - Buses pass through towns and need to know
about them
• Driver - Company employs drivers, personnel will hold
their data.
• Stage - Routes are made up of stages
• Garage - Garage houses buses, and need to know
where they are.
BUS
BUS ROUTE
BUS ROUTE

TOWN
BUS ROUTE

STAGE

TOWN
BUS
ROUTE

STAGE DRIVER

TOWN
BUS
ROUTE

GARAGE STAGE DRIVER

TOWN
BUS allocated ROUTE

GARAGE STAGE DRIVER

TOWN
BUS allocated ROUTE

STAGE alloc DRIVER


ated

GARAGE TOWN
BUS allocated ROUTE

STAGE alloc DRIVER


ated

passes

GARAGE
TOWN
BUS allocated ROUTE

passes

STAGE alloc DRIVER


ated

GARAGE

passes

TOWN
BUS allocated ROUTE

passes

STAGE alloc DRIVER


ated

GARAGE

passes

has
TOWN
BUS allocated ROUTE

passes

has

STAGE alloc DRIVER


ated

GARAGE

passes

has
TOWN
Q2: Draw an ERD
• Major airlines companies that provide passenger services in Taiwan are:
UniAir, TransAsia Airways, Far Eastern Transport, Great China Airlines etc.
Taiwan’s Federal Aviation Administration (TFAA) keeps a database with lots
of information on all airlines. This information is made accessible to all
airlines in Taiwan with the intention of helping the Companies assess their
Competitive position in the domestic market. The information kept consists
of:
• Each airpline has an identification number, name of the contact person and
telephone number.
• For each aircraft identification number, capacity and model is recorded.
• Each employee has an employee identification number, name, address,
birthday, sex, position with the company and qualification.
• Each route has a route identification number, origin, destination,
classification (into domestic or international route), distance of the route
and price charged per passenger.
• Each airline keeps information about their buy/sell transactions (for
example, selling an airplane ticket is a sell transaction, paying for
maintenance is a buy transaction). Each transaction has a transaction
identification number, date, description and amount of money
paid/received.
airline has employee
airline has employee

assign

rout
airline has employee

assign aircraft

rout
transaction

performs

airline has employee

assign aircraft

rout
• Q10: Draw an ERD
• TCS prides itself on having up-to-date information on the processing
and current location of each shipped item. To do this, TCS relies on
a company-wide information system. Shipped items are the heart
of the TCS product tracking information system. Shipped items can
be characterized by item number (unique), weight, dimensions,
insurance amount, destination, and final delivery date. Shipped
items are received into the TCS system at a single retail center.
Retail centers are characterized by their type, uniqueID, and
address. Shipped items make their way to their destination via one
or more standard TCS transportation events (i.e., flights, truck
deliveries). These transportation events are characterized by a
unique scheduleNumber, a type (e.g, flight, truck), and a
deliveryRoute. Please create an Entity Relationship diagram that
captures this information about the TCS system. Be certain to
indicate identifiers and cardinality constraints
Shipped Items
Shipped Items

Retail Center
Shipped Items Transportation

Retail Center
Shipped Items Transportation

received

Retail Center
Shipped Items Send Transportation
through

received

Retail Center

You might also like