• Tidak ada hasil yang ditemukan

Staffsite STMIK PPKIA Pradnya Paramita DD_3_4

N/A
N/A
Protected

Academic year: 2017

Membagikan "Staffsite STMIK PPKIA Pradnya Paramita DD_3_4"

Copied!
12
0
0

Teks penuh

(1)
(2)

Database Design

3-4

(3)

DDS3L4

Objectives

This lesson covers the following objectives:

• Identify relationships using a matrix diagram

(4)

Purpose

• It is useful to

know more than one way to

discover

relationships.

It may be simple enough to identify relationships given three entities.

But what about finding relationships when you have thirteen or more entities?

TEACHER COURSE

CLASS

TEACHER COURSE STUDENT

CLASS EXAM SEMESTER

CAFETERIA GRADE CLUB

CLASSROOM SCHOOL SCHOOL EQUIPMENT

(5)

DDS3L4

Purpose

• Using a matrix

diagram,

especially when you are dealing with many

entities, is a good way to make sure that you haven’t missed any relationships.

It may be simple enough to identify relationships given three entities.

But what about finding relationships when you have thirteen or more entities?

TEACHER COURSE

CLASS

TEACHER COURSE STUDENT

CLASS EXAM SEMESTER

CAFETERIA GRADE CLUB

CLASSROOM SCHOOL SCHOOL EQUIPMENT

(6)

Business Scenario

• "I work for a travel agency.

I keep a record of the countries that our

customers have visited

and the landmarks they’ve seen in each country. It helps us customize tours for them."

• We can use the matrix

diagram to uncover relationships.

TRAVELER COUNTRY LANDMARK

TRAVELER

COUNTRY

LANDMARK

TRAVELER

LANDMARK

COUNTRY

(7)

DDS3L4

Matrix Diagrams

• To avoid confusion, be consistent in writing to and reading

from the matrix only in one direction.

TRAVELER COUNTRY LANDMARK

TRAVELER

COUNTRY

LANDMARK

visit have seen

visited by the location of

seen by located in

correct: COUNTRY visited by TRAVELER correct: LANDMARK seen by TRAVELER

incorrect: TRAVELER visited by COUNTRY

(8)

Matrix Diagrams

TRAVELER COUNTRY LANDMARK

TRAVELER

COUNTRY

LANDMARK

• Relationships

discovered via the matrix diagram are then drawn on the ERD.

• Matrix diagrams do

not show optionality and cardinality.

visit have seen

visited by the location of

seen by located in

TRAVELER COUNTRY

LANDMARK

visit

visited by

the location of

located in have seen

(9)

DDS3L4

Matrix Diagrams

• Each COUNTRY may

be visited by one or more TRAVELERs.

• Each TRAVELER may

visit one or more

COUNTRY. TRAVELER COUNTRY

LANDMARK

visit

visited by

the location of

located in have seen

seen by

TRAVELER COUNTRY LANDMARK

TRAVELER

COUNTRY

LANDMARK

visit have seen

visited by the location of

(10)

Terminology

Key terms used in this lesson included:

(11)

DDS3L4

Summary

In this lesson, you should have learned how to:

• Identify relationships using a matrix diagram

(12)

Referensi

Dokumen terkait

• Give examples of jobs, salaries, and opportunities that are possible by participating in the Academy. • Explain how your participation in the Academy can help you take advantage

• Distinguish between using date as an attribute and DAY as an entity in a data model, depending on business requirements. • Solve the problem of keeping characteristics of a date by

• In a query using a GROUP BY and HAVING clause, the rows are first grouped, group functions are applied, and then only those groups matching the HAVING clause are

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

Untuk membuka Network Connection pertama- tama klik Start > Control Panel > Network Connection >.. Local

Sistem komputer memiliki perangkat lunak untuk memerintahkan komputer melaksanakan tugas yang harus dilakukannya guna memproses data  Brainware.. Brainware (manusia) merupakan

JARINGAN TANPA KABEL (WIRELESS) ADALAH SUATU JARINGAN YANG MEMUNGKINKAN ORANG-ORANG UNTUK BERKOMUNIKASI, MENGAKSES APLIKASI DAN INFORMASI TANPA MENGGUNAKAN KABEL.. INI

› Path (Jalur) , jalur yang mungkin untuk bergerak dari satu titik ke titik lainnya sejalan dengan keberadaan arah anak panah....