ERDs or Entity-Relationship Diagrams are a pictorial display of the tables (entities) within the data base structure.
The modules in the application are comprised of many different tables, such as ‘Identity’ or ‘Assignment’. The tables within the system interact with one another and share information. Through these associations, ‘relationships’ form and tables can become dependent on others. The Entity Relationship Diagrams (ERDs) in this manual will explain the interaction that tables in the application have with one another.
Most boxes found in the ERD’s however, provide the user with detailed information about the table.
The shading will appear grey on a black and white printout; however, it may appear yellow if the ERD is brought up on a computer.
This line indicates that the table is explained in detail in another ERD within the same module.
The solid line indicates that the Parent table (EID) is MANDATORY for the Dependant table (ECT). This means that the Parent table must be filled BEFORE the Dependant table can be completed. A broken line indicates that the Dependant table (ECT) is OPTIONAL for the Parent table (EID). This means that the Parent table can be completed WITHOUT the Dependant table having been filled.
If the connecting line between the tables is entirely dotted, the tables are optional for each other. This means that either table may be filled before the other.
The individual defined in EID is ‘KNOWN BY’ the alias in EAL. The alias defined in EAL is ‘ANOTHER NAME FOR’ the individual in EID.
Reading from left to right, we can see that the connection is a ‘One to Many’ relationship.
In this instance, the line starts as a single line at the Entity table and ends in many lines at the Unit table. This means that the entity may have many units associated with it, however, the unit cannot belong to more than one entity. Another way this can be expressed is that the Entity table is the PARENT of the Unit table and the Unit table is the DEPENDENT of the Entity table.
There can be a situation where two tables are parents to each other, which will be explained further on.
The presence of the "many" branch (also known as crow's feet) indicates this foreign key.
For instance, within the Alias table, there will be a foreign key column (EID_ID) for the parent table, Identity. Parent tables do not keep foreign keys and therefore their dependent tables can only be traced within the Oracle Data dictionary as referential constraints
Parent/Dependant Relationship In the first scenario, one table is the parent with two lines moving towards a dependant table.
In this particular case, the Contact table holds keys to identify the contact’s physical address and mailing address. The two lines originating from the State/Province table indicate that the Contact table will need to use the state/province information on two separate occasions (location and mailing addresses) even though the State/Province information is only given once for each occasion.
The ‘One to Many’ nature of the lines originating from the State/Province table indicates that it is the PARENT to the Contact table. This means that while the state/province information can be applied to many contacts, each contact record, however, can use this data only twice, once for location and once for the mailing address.
Parent/Parent Relationship The second scenario for a two-line relationship between tables is when tables are parents to each other.
The example above shows that the two lines between the tables express that the User table is the parent of the Identity table AND that the Identity table is the parent of the User table; the tables are parents to each other. This simply means that the user identity may have many employee identities attached to it and that the user identity may have may employee identities attached to it. In this case, both tables will have foreign keys for the other table.
In this example, if the assignment record were deleted, the associated assignment detail record would also be deleted automatically.
In the example above, we can see that the Entity table has a key (DEN_ID) that refers back to itself.
Suppose that your entity has sub-entities:
Parent Company | = ABC Inc. |
Subsidiaries | = D Corp. |
= E Corp. | |
= F Corp. |
ID | Entity | Foreign Key DEN_ID | |
---|---|---|---|
Parent | 1 | ABC Inc. | Null |
Dependant | 10 | D Corp | 1 |
13 | E Corp | 1 | |
27 | F Corp | 1 |
This exclusive join means that the contact table may be tied to either the User table or the Identity table, but not both. These tables cannot have the same contact.
Occasionally you will see an exclusive join that isn’t connected to multiple tables. This simply means that for brevity sake, not all dependent tables are displayed on the chart
For example, Distribution can be joined to multiple tables, including the Assignment Detail, Position or Job tables. (Note however, that only the EASD tables is displayed here.)
In the example above, the Alias record cannot be altered to point to a different Identity.
Screen captures are meant to be indicative of the concept being presented and may not reflect the current screen design.
If you have any comments or questions please email the Wiki Editor
All content © High Line Corporation