Table Primary key Other attributes foreign keys in italics
Vendor Vendor# Name, address, phone, contact, account balance
Employees Employee# Name, date hired, salary, date of birth, position
Purchases Purchase Order# Date, employee#, vendor#
Note: The cost and sales price are attributes of the inventory table because each unique
item is only purchased once and sold once.
The following tables and attributes exist in a relational database:
Table Attributes
Vendor Vendor#, name, street address, city, state
Disbursed
Draw an REA diagram for this database. State any additional assumptions you need
to make about cardinalities.
The solution appears on the following page. Students should be able to suggest adding
the entities connected by dotted lines, even though they are not listed in the problem. Key
assumptions about cardinalities include the following: