You are on page 1of 13

Nama : Mar’atus Sholeha

NIM : 2009106067

Kelas : Informatika B

Practice 3_1

Exercise 1: Resolve M:M Relationships

1.

2.
3.

Exercise 2

EXAM RESULT
STUDENT
Exercise 3

Employee Full Time


FACULTY #ID
#ID *Name
*First Name *Salary
*Last Name *Insurance plan
*Email

*Login Dtae Employee Part Time


*Login Time #ID
o Details *Hourly basic

*Salary

Exercise 4

Exercise 5
Exercise 6
Exercise 7
Practice 3_2

1.

2. a. Why is start time part of the UID of ASSIGNMENT?

= karena start time merupakan atribut unik yang mana di gabungkan dengan atribut date of exam,
menjadikan UID tidak memiliki kesamaan dengan elemen lainnya. Dan juga start time bersifat static
(tidak dapat berubah-ubah).

b. - End time must be later than start time.

- start time harus lebih dulu daripada end time

- memutuskan waktu tetap untuk start time dan end time

Practice 3_3

Exercise 1

1. Table 1 : item_color

Item_ID Color
IT001 Red
IT002 Blue
IT003 Yellow
IT004 Green
IT005 Blue
IT006 Yellow
Table 2 : item_price

Item_ID Color
IT001 $16.56
IT002 $50.00
IT003 $19.76
IT004 $20.00

2. Table 1 : supplier_store_details

Supplier_ID Store ID
SP001 S1
SP002 S3
SP003 S1
SP004 S2
SP005 S3

Table 2 : store_location

Store_ID Location
S1 New York
S2 Vermont
S3 New Hampshire
S4 Rhode Island
S5 Illinois

3. Table 1: book_price_details

Book_ID Category ID Price


1 1 $13.40
2 2 $5.00
3 1 $40.12
4 3 $1.20
5 2 $100

Table 2 : category_details

Category ID Category Desc


1 Cooking
2 Travel
1 History
3 Kids
2 Novel

Exercise 2

Exercise 3

1.
2.

Exercise 4

1. – CUSTOMER maybe have one or many ORDER


- CUTOMER_ADDRESS must be dikaitkan one and only one ADDRRESS
- CUSTOMER_ADDRESS must be dikaitkan one and only one CUSTOMER
- CUSTOMER must be have one or many EMAIL ADDRESS
- DELIVERY must be dikaitkan one ond only one ORDER
- ORDER must be dikaitkan one and only one ORDER
- ORDER may be dikaitkan one or many PRODUCT
- PAYMENT must be dikaitkan one and only one ORDER
- ORDER must be dikaitkan one or more PRODUCT

2.

Bussiness Rule Structural Bussiness Procedural Bussiness Programmatic


Rule Rule Bussiness Rule
All teachers in our √
school must possess a
valid teaching
certificate
Each Department must √
offer a Course
Approval of travel √
requests to an event
must be signed by the
project manager of the
event
A customer may make √
numerous payments
on account
A machine operator √
may not work more
than 10 hours in a day
The Rental amount in √
RENTAL is calculated
from the Rental rate
multiplied by the
number of days
A Customer can have √
zero, one or many
ORDERS
The Total cost of the √
RENTAL is calculated
from the sum of
Insurance amount,
Rental amount, and
Late charge
A customer’s debt √
must not exceed the
customer’s credit limit.
Practice 3_4

Exersice 1

1.

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. A. pk = primary key
b.fk = foreign key
c. uk = unique key
d. * = mandatory
e. o = optional

3. A. authors = AUS

B. publisherd = PLS

c. Customers = CTS

4.

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

You might also like