Beruflich Dokumente
Kultur Dokumente
1.
2.
3.
4.
Draw a diagram
Draw the diagram on the last slide using both tools
INVOICE Includes
Paid?
Primary Key (attribute(s) that form(s) a unique identifier for an instance of an entity) is underlined.
Relationship
Is_included_on Qty_Added INVOICE ITEM
Entities (Tables)
Cardinality of relationship
Hint: Role descriptions can be entered in verb phrase or inverse verb phrase in the Properties window in Rational.
Identifying Relationship
An identifying or mandatory relationship defines an association between tables (i.e., entities). The identifying relationship establishes the mandatory link between a child table and a parent table. An instance of the child table cannot exist without an instance of the parent table. An example of a parent and child table mandatory relationship is when your database maintains a table with data containing information about customer orders in one table called, Orders, and holds order line-item information in another table called, Order_Details. An instance of the child Order_Details cannot exist without an instance of the parent Orders.
Non-Identifying Relationship
A non-identifying relationship specifies an association between two tables (i.e., entities). An instance of each table has its own identity. One type of non-identifying relationship is an optional relationship. Another is mandatory. Use an optional non-identifying relationship when a parent instance is not required. Employees may be assigned to work on projects, and projects may have employees assigned to work on them, but such assignments are optional. Employee and Project have a non-identifying relationship. Use a mandatory non-identifying relationship when a parent instance is required. If an employee must be assigned to a department, and a department must have at least one employee assigned to it, Employee and Department have a mandatory nonidentifying relationship.
Includes
Note: This diagram will have a different appearance in Rational. Entities will appear as tables with the attributes being columns within the table. Examples of cardinality are 1 for mandatory and 0..* for optional many.
Invoice Item