ER DIAGRAM WITH EXTENDED FEATURES (ROLL NO:22)

Question:

The Motor Vehicle Branch administers driving tests and issues driver’s licenses.

Any person who wants a driver’s license must ¯rst take a learner’s exam at any

Motor Vehicle Branch in the province. If he/she fails the exam, he can take the

exam again any time after a week of the failed exam date, at any branch. If he

passes the exam, he is issued a license (type = learner’s) with a unique license

number. A learner’s license may contain a single restriction on it. The person

may take his driver’s exam at any branch any time before the learner’s license

expiry date (which is usually set at six months after the license issue date). If

he passes the exam, the branch issues him a driver’s license. A driver’s license

must also record if the driver has completed driver’s education, for insurance

purposes.

Create a E-R diagram.

 

Answer:

 STEPS:

1)ENTITIES AND ATTRIBUTES

a)learner_license

  • Driver_ed

b)driverlicense

  • restrictions

c)license

  • license_class
  • license_expiry
  • license_no

d)driver

  • driver_sin
  • driver_birthdate
  • driver_addr
  • driver_city
  • driver_postalcode
  • dirver_phoneno

e)branch

  • bank_id
  • bank_name
  • bank_addr
  • bank_postalcode
  • bank_city
  • bank_phoneno

2)RELATIONSHIPS

1)

Capturenna

mma

 

Completed ER diagram

 

ppp

 

Advertisements