Docsity

Entity Relationship Diagram Questions, Exercises of Database Management Systems (DBMS)

Toggle sidebar
bg1
Royal Institute International School
ERD Questions
1. Draw an ER diagram to represent the scenario given below. The attributes and the
primary keys of entities should be clearly indicated. State clearly if any assumptions that
you have.
“Jazz Beatle” has decided to store information about musicians who perform on its
albums in a database.
Each musician has an MID, a name, an address, and a phone number. Each instrument
used in songs recorded has a unique identification number, a name (e.g., guitar,
synthesizer, flute, etc.) and a musical key (e.g., C, B-flat, etc.).Each album recorded has a
unique identification number, a title, a copyright date, a format (e.g., DVD), and an album
identification number. Each song recorded has a title and an author. Each musician may
play several instruments, and a given instrument may be played by several musicians.
Each album has a number of songs on it, but no song may appear on more than one
album. Each song is performed by one or more musicians, and a musician may perform a
number of songs. Each album has exactly one musician who acts as its producer. A
musician may produce several albums.
2. Construct an ER diagram for given scenario. Clearly represent entities, attributes and
primary keys within the diagram.
Sabaragamuwa Provincial Department of Education is designing an Electronic Library
System (ELS) aiming to improve knowledge and promote reading habit of students. To
get e-books from ELS students should get its membership by registering with the system
providing their name, grade and school. After this process a member is given a unique
memberID, Username and a password to access. For the process of inputting an e-book is
to the system details like unique ISBN, book name and author’s name is required. One
member can view three e-books at one instance on his web browser and a single e-book
can be shared among multiple users at one instance.
The system take notes about the number of books viewed by each and every member and
provide grades accordingly. The system will also facilitate to generate a report containing
list of members which acquire each grade which has to be submitted to its management.
3. The Motor Vehicle Branch administers driving tests and issues driver’s licenses. Any person who
wants a driver’s license must first 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. 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.
Design an E-R diagram by following these steps.
pf2

Partial preview of the text

Download Entity Relationship Diagram Questions and more Exercises Database Management Systems (DBMS) in PDF only on Docsity!

Royal Institute International School

ERD Questions

  1. Draw an ER diagram to represent the scenario given below. The attributes and the primary keys of entities should be clearly indicated. State clearly if any assumptions that you have. “Jazz Beatle” has decided to store information about musicians who perform on its albums in a database.

Each musician has an MID, a name, an address, and a phone number. Each instrument used in songs recorded has a unique identification number, a name (e.g., guitar, synthesizer, flute, etc.) and a musical key (e.g., C, B-flat, etc.).Each album recorded has a unique identification number, a title, a copyright date, a format (e.g., DVD), and an album identification number. Each song recorded has a title and an author. Each musician may play several instruments, and a given instrument may be played by several musicians. Each album has a number of songs on it, but no song may appear on more than one album. Each song is performed by one or more musicians, and a musician may perform a number of songs. Each album has exactly one musician who acts as its producer. A musician may produce several albums.

  1. Construct an ER diagram for given scenario. Clearly represent entities, attributes and primary keys within the diagram.

Sabaragamuwa Provincial Department of Education is designing an Electronic Library System (ELS) aiming to improve knowledge and promote reading habit of students. To get e-books from ELS students should get its membership by registering with the system providing their name, grade and school. After this process a member is given a unique memberID, Username and a password to access. For the process of inputting an e-book is to the system details like unique ISBN, book name and author’s name is required. One member can view three e-books at one instance on his web browser and a single e-book can be shared among multiple users at one instance.

The system take notes about the number of books viewed by each and every member and provide grades accordingly. The system will also facilitate to generate a report containing list of members which acquire each grade which has to be submitted to its management.

  1. The Motor Vehicle Branch administers driving tests and issues driver’s licenses. Any person who wants a driver’s license must first 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. 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.

Design an E-R diagram by following these steps.

2

Royal Institute International School

a. Find out the entities in the spec.

b. Find out the relationships among the entities.

c. Figure out attributes of the entities and (if any) of the relationships.

d. Figure out constraints between entities and relationships. e. Check to see if you miss anything

in spec