Sei sulla pagina 1di 1

DR How to read a data model

TABLES AND KEYS


Each rectangle represents a table. A table consists of columns and rows. Each entry in a rectangle is the name of a column of similar data--Account Code, Financial Manager Title, etc. Rectangles with square corners are independent of other tables in the model. Rectangles with rounded corners are dependent on related tables in the model. The primary key (PK) of a table is the column or columns that uniquely identify each row. PK columns are shown above the line. A foreign key (FK) is a column in one table that references a primary key from another table. Organization Chart of Accounts Code (PK) Organization Code Financial Manager ID (FK) Organization Effective Date

TYPES OF RELATIONSHIPS
Chart of Accounts Code Chart of Accounts Code Chart of Accounts Title Chart of Accounts Effective Date

Financial Manager Financial Manager ID Financial Manager Name Financial Manager Title Financial Manager Effective Date

A solid line indicates an identifying relationship. The Chart of Accounts Code is needed to exactly identify a given Account Code. Account Code Chart of Accounts Code (FK) Account Code Account Title Account Type Account Effective Date

A dashed line indicates an non-identifying relationship. An Organization has a Financial Manager, but the Financial Manager does not uniquely identify the Organization.

Organization Chart of Accounts Code (FK) Organization Code Financial Manager ID (FK) Organization Effective Date

CARDINALITY
Chart of Accounts Code Chart of Accounts Code Chart of Accounts Title Chart of Accounts Effective Date

An Organization must be assigned to exactly one Chart of Accounts. Organization Chart of Accounts Code (FK) Organization Code Financial Manager ID (FK) Organization Effective Date A Financial Manager may be assigned to zero, one or many Organizations.

Zero, one or many organizations may be assigned to each Chart of Accounts. An Organization may have zero or one Financial Manager.

Financial Manager Financial Manager ID Financial Manager Name Financial Manager Title Financial Manager Effective Date

2003-2004, The Board of Trustees at the University of Illinois

Potrebbero piacerti anche