You are on page 1of 7

Nama : Benny Hernanda Putra

NIM : 2009106066
Kelas : Informatika B 2020

 Section 3 Lesson 4
 Exercise 1
1). Match the ERD elements to their corresponding database elements
ANALYSIS DESIGN
1. Attribute a. Column
2. Entity b. Foreign key
3. ER Model c. Physical design
4. Instance d. Primary key
5. Primary UID e. Row
6. Relationship f. Table
7. Secondary UID g. Unique key

Answer :
ANALYSIS DESIGN
1. Attribute a. Column
2. Entity f. Table
3. ER Model c. Physical design
4. Instance e. Row
5. Primary UID d. Primary key
6. Relationship b. Foreign key
7. Secondary UID g. Unique key

2). Identify the table diagram notations listed below


a. pk
b. fk
c. uk
d. *
e. o

Answer :
a. pk = Primary Key
b. fk = Foreign Key
c. uk = Unique Key
d. * = Mandatory
e. o = Optional

3). Create short names for the terms below based on the naming conventions rules.
a. Authors
b. Publishers
c. Customers

Answer :
a. Authors = AUS
b. Publishers = PLS
c. Customers = CTS

4). The goal of this practice is to recognize attributes for an entity.


These three entities—SONG, EVENT, and CUSTOMER—play a role in a DJ business and
are listed as the first three column headings in the table below. The fourth column contains a
list of attributes. Use an X or a check mark to indicate that the attribute could belong to one
or more of the entities listed. For example, could Title be an attribute for Song, for Event,
and/or for Customer?
SONG EVENT CUSTOMER
Title
Description
Venue
First Name
Phone Number
Release Date
Last Name
Type
Email Address

Answer :
SONG EVENT CUSTOMER
X Title
X X Description
X Venue
X First Name
X Phone Number
X Release Date
X Last Name
X X Type
X Email Address

 Exercise 2
1). With the ERD provided below, map the entities, attributes and UIDs to tables, rows, and
keys using a table diagram as shown :
Answer :

Table Name Table Short Name


STUDENT sdt
Key Type Optionality Column Name
pk * id
* first_name
* last_name
* registration_year
uk * email
fk o pin_id

Table Name Table Short Name


PARENT_INFORMATION pin
Key Type Optionality Column Name
pk * id
* parent1_first_name
* parent1_last_name
* parent2_first_name
* parent2_last_name

Table Name Table Short Name


STUDENT_ATTENDANC sae
E
Key Type Optionality Column Name
* number_of_working_days
* number_of_days_off
o eligibility_for_exam
pk1, fk1 * sdt_id
pk2, fk2 * asn_id

Table Name Table Short Name


COURSE coe
Key Type Optionality Column Name
pk * id
uk * name
fk1 * asn_id
fk2 * dpt_id
fk3 o ole_logon_id
fk4 o std_building
fk5 o std_room
fk6 o std_date_time

Table Name Table Short Name


STUDENT_COURSE_DETAIL scl
Key Type Optionality Column Name
* grade
pk1, fk1 * sdt_id
pk2, fk2 * coe_id

Table Name Table Short Name


ACADEMIC_SESSION asn
Key Type Optionality Column Name
pk * id
uk * name
Table Name Table Short Name
DEPARTMENT dpt
Key Type Optionality Column Name
pk * id
uk * name
* head

Table Name Table Short Name


EXAM_RESULT ert
Key Type Optionality Column Name
* grade
pk1, fk1 * sdt_id
pk2, fk2 * coe_id
pk3, fk3 * eam_id

Table Name Table Short Name


ONLINE ole
Key Type Optionality Column Name
pk * logon_id
* password

Table Name Table Short Name


SEATED std
Key Type Optionality Column Name
pk1 * building
pk2 * room
pk3 * date_time

Table Name Table Short Name


FACULTY fcy
Key Type Optionality Column Name
pk * id
* first_name
* last_name
uk * email
o salary
o insurance
o hourly rate
fk * dpt_id
Table Name Table Short Name
FACULTY_COURSE_DETAIL fcl
Key Type Optionality Column Name
* contact_hours
pk1, fk1 * coe_id
pk2, fk2 * fcy_id

Table Name Table Short Name


FACULTY_LOGIN_DETAIL fll
Key Type Optionality Column Name
pk1 * login_date_time
pk2, fk * fcy_id

Table Name Table Short Name


EXAM eam
Key Type Optionality Column Name
pk * id
o start_date
fk1 * coe_id
fk2 o ete_id

Table Name Table Short Name


EXAM_TYPE ete
Key Type Optionality Column Name
pk * type
* name
o description

You might also like