• Tidak ada hasil yang ditemukan

Staffsite STMIK PPKIA Pradnya Paramita DD_5_1

N/A
N/A
Protected

Academic year: 2017

Membagikan "Staffsite STMIK PPKIA Pradnya Paramita DD_5_1"

Copied!
14
0
0

Teks penuh

(1)
(2)

Database Design

5-1

(3)

Objectives

This lesson covers the following objectives:

• Describe and give an example of relationship transferability

• Understand the difference between transferable and nontransferable relationships

(4)

Purpose

• Once a class has been allocated to a teacher, can that class later be transferred to another teacher, possibly in

mid-semester?

• Usually yes, because if not, what would we do if the original teacher becomes sick?

• Some health clubs allow memberships to be transferred from one person to another, but other health clubs don’t.

• This business rule is normally determined by what is most efficient and most profitable for the club.

(5)

Relationship Review

• Let’s review a simple relationship between EMPLOYEE and DEPARTMENT.

• Optionality:

– Must every EMPLOYEE be assigned to a DEPARTMENT?

– Must every DEPARTMENT be responsible for an employee?

EMPLOYEE

DEPARTMENT

# ID * Name

assigned to

responsible for

(6)

Relationship Review

• Cardinality:

– How many EMPLOYEEs can a DEPARTMENT be responsible for?

– How many DEPARTMENTs can an EMPLOYEE be assigned to?

EMPLOYEE

DEPARTMENT

# ID * Name

assigned to

(7)

Relationship Review

• Transferability:

– Can an EMPLOYEE be transferred from one DEPARTMENT to another DEPARTMENT?

EMPLOYEE

DEPARTMENT

# ID * Name

assigned to

(8)

Relationship Transferability

• Transferable: A STUDENT being allowed to move from one STUDY GROUP to another.

• There is a relationship between STUDENT and STUDY GROUP that is transferable.

STUDENT STUDY GROUP

join

have

(9)

Relationship Transferability

• Nontransferable: A STUDENT can be issued a RECEIPT for

paying tuition fees, taking a certification exam, or purchasing items at the bookstore. Once a RECEIPT has been issued, it cannot be transferred to another STUDENT.

Nontransferable Relationship

A nontransferable relationship is represented with the diamond on

RECEIPT issued to STUDENT

(10)

Relationship Transferability

• If it was issued in error, it would have to be cancelled, and another RECEIPT would have to be written up. The

relationship between STUDENT and RECEIPT is nontransferable.

Nontransferable Relationship

A nontransferable relationship is

RECEIPT issued to STUDENT

(11)

More Nontransferable Relationships

• Ownership of a POEM belongs with its AUTHOR. Authorship is a relationship that cannot be moved to another person.

POEM written by AUTHOR

(12)

Terminology

Key terms used in this lesson included:

• Nontransferable

(13)

Summary

In this lesson, you should have learned how to:

• Describe and give an example of relationship transferability

• Understand the difference between transferable and nontransferable relationships

(14)

Referensi

Dokumen terkait

• The Oracle database software will transform recorded/stored data and statistics into useful pieces of information.. • Data: Each student’s test score is one

• An entity relationship diagram (ERD) is a consistent tool that can be used to represent the data requirements of a business regardless of the type of database that is used, and

– In other words, is this a mandatory or optional relationship for an employee.. • Must every job be assigned to

• The request is then sent to the Oracle Server (a database running on a computer), the request is processed and the data returned is displayed. SQL statement

• Use the correct syntax to select specific columns in a table, modify the way data is displayed, and perform calculations using arithmetic expressions and

• The IS NULL condition tests for unavailable, unassigned, or unknown data. • IS NOT NULL tests for data that is available in

It is mainly used to terminate the column, expression, or value to a specified number of decimal places. • When TRUNC is used, if the number of decimal places

CREATE or ALTER TABLE statement, the constraint is automatically enabled (enforced) by Oracle unless it is specifically created in a disabled state using the DISABLE