0% found this document useful (0 votes)
61 views

If218 - Pengantar Basis Data Praktikum 2

This document contains instructions for Practicum 2 which involves entity-relationship (ER) diagram modeling. Students are asked to model real-world problems as ER diagrams and submit a Word report and Visio ER diagram file by the end of the practicum session. It also provides 5 exercises involving constructing ER diagrams to model situations such as a hospital patient database, university course registration system, student exam records, and an online bookstore with additional music items.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views

If218 - Pengantar Basis Data Praktikum 2

This document contains instructions for Practicum 2 which involves entity-relationship (ER) diagram modeling. Students are asked to model real-world problems as ER diagrams and submit a Word report and Visio ER diagram file by the end of the practicum session. It also provides 5 exercises involving constructing ER diagrams to model situations such as a hospital patient database, university course registration system, student exam records, and an online bookstore with additional music items.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

IF218 – PENGANTAR BASIS DATA

Praktikum 2

Pokok Bahasan Entity-Relationship Diagram (E-R Diagram)


TIK 1. Memodelkan permasalahan di dunia nyata ke dalam model ER
2. Membuat Diagram ER
Setoran Laporan (Format Word) dan ER Diagram (Format Visio)
Zip dengan nama file: Prakt2_NIM.zip
Batas Akhir Setoran Akhir sesi praktikum

1. (Exercise 2.1) Explain the distinctions among the terms primary key, candidate key,
and superkey.
2. (Exercise 2.2) Construct an E-R diagram for a hospital with a set of patients and a set
of medical doctors. Associate with each patient a log of the various tests and
examinations conducted.
3. (Exercise 2.4) A university registrar’s office maintains data about the following
entities: (a) courses, including number, title, credits, syllabus, and prerequisites; (b)
course offerings, including course number, year, semester, section number,
instructor(s), timings, and classroom; (c) students, including student-id, name, and
program; and (d) instructors, including identification number, name, department, and
title. Further, the enrollment of students in courses and grades awarded to students in
each course they are enrolled for must be appropriately modeled.
Construct an E-R diagram for the registrar’s office. Document all assumptions that
you make about the mapping constraints.
4. (Exercise 2.5) Consider a database used to record the marks that students get in
different exams of different course offerings.
a. Construct an E-R diagram that models exams as entities, and uses a ternary
relationship, for the above database.
b. Construct an alternative E-R diagram that uses only a binary relationship
between students and course-offerings. Make sure that only one relationship
exists between a particular student and course-offering pair, yet you can
represent the marks that a student gets in different exams of a course offering.
5. (Exercise 2.12) Consider the E-R diagram in Figure 2.29, which models an online
bookstore.
a. List the entity sets and their primary keys.
b. Suppose the bookstore adds music cassettes and compact disks to its collection.
The same music item may be present in cassette or compact disk format, with
differing prices. Extend the E-R diagram to model this addition, ignoring the
effect on shopping baskets.
c. Now extend the E-R diagram, using specialization, to model the case where a
shopping basket may contain any combination of books, music cassettes, or
compact disks.

1
Figure 2.29 E-R diagram for Exercise 2.12.

You might also like