Tutorial 1 Solutions - IN3001 (2013-14) I) ER Diagram: Using Original, Peter Chen's Notation
Tutorial 1 Solutions - IN3001 (2013-14) I) ER Diagram: Using Original, Peter Chen's Notation
I) ER Diagram
Using original, Peter Chens
1
notation
1
Chen, P.P.-S., The Entity-Relationship Model - toward a Unified View of Data. ACM Trans. Database Syst., 1(1):
p. 9-36. 1976.
Chen, P., Entity-Relationship Modeling: Historical Events, Future Trends, and Lessons Learned, in Software
Pioneers, B. Manfred and D. Ernst, Editors, Springer-Verlag New York, Inc. p. 296-310, 2002.
Using Crows-foot notation
NB: The tool used was VisualParadigm (available in labs), which automatically resolves many-to-many
relationships, e.g. CustomerAccount(Possesses)
Many ER diagramming tools exist: ERwin, Microsoft Visio, Rational Rose, System Architect, Visual
Paradigm etc. Some free software diagramming tools just draw the ER notational shapes, e.g., Dia (part of
the GNOME project office suite), or www.draw.io. These kinds of tools usually do not enforce any
semantic rules.
II) Relational Schema
Customer (CCode, Title, Fname, Lname, Address, Pcode)
Account (AccNo, AccCode, Atype, Irate, Olimit, BCode)
Possesses (CCode, AccNo, CardNo)
Card (CardNo, IssueNo, IssueDate, ExpiryDate, Limit)
Branch (Bcode, Bname, Address, Pcode, Phone, Type)
Staff (Scode, Title, Fname, Lname, BCode, Position)
Pay (Position, Bsalary, Increment, Otime)
Primary Key: Underlined
Foreign Key: Italic