Скачиваний:
101
Добавлен:
30.04.2013
Размер:
1.64 Mб
Скачать

Creating a Physical Model

Creating a Physical Model

The following table summarizes the relationship between objects in a logical and physical model.

Summary of Logical and Physical Model Components

Logical Model

Physical Model

 

 

Entity

Table

 

 

Dependent entity

FK is part of child table’s PK

 

 

Independent entity

Parent table or, if child table, FK is

 

NOT part of child table’s PK

 

 

Attribute

Column

 

 

Logical datatype (text, number,

Physical datatype (valid example varies

datetime, blob)

depending on the target server

 

selected)

 

 

Domain (logical)

Domain (physical)

 

 

Primary key

Primary key, PK Index

 

 

Foreign key

Foreign key, FK Index

 

 

Alternate key (AK)

AK Index—a unique, non-primary

 

index

 

 

Inversion entry (IE)

IE Index—a non-unique index created

 

to search table information by a non-

 

unique value, such as customer last

 

name.

 

 

Key group

Index

 

 

Business rule

Trigger or stored procedure

 

 

Validation rule

Constraint

 

 

Relationship

Relationship implemented using FKs

 

 

Identifying

FK is part of child table’s PK (above the

 

line)

 

 

Non-Identifying

FK is NOT part of child table’s PK

 

(below the line)

 

 

Subtype

Denormalized tables

 

 

Many-to-many

Associative table

 

 

8–2 ERwin Methods Guide