130 likes | 147 Views
This course provides an introduction to database design and ER notation, covering topics such as logical and physical database modeling, entity relationships, and alternative notations. Students will review slides, iterate through design, and translate into a physical model. The class also covers UML notation and different types of diagrams. Next class will focus on SQL review and modeling. Students should start thinking about Oracle project ideas and group formation.
E N D
First class agenda • Introductions • Course overview • http://ils.unc.edu/chaffin/258/ • Password protected items will use inls258 / WeR258! as the userid/password combination • To turn in work, • Use class inbox (\\kiwi\home\chaffin\shared\inls258\inbox) • Email as an attachment (after compressing!) • Review slides?
DB design • Develop logical model of database • Entities • Relationships • Iterate through design • Translate into physical model of database
ER Notation: Basic Symbols member student job-title Attribute Relationship Entity D Superclass – Subclass Connector
Attributes Optional Attribute Basic Attribute bdate dr-license student SID age Primary Key Derived Attribute hobby street Multi-valued Attribute address city Composite Attribute state zip
Relationships writes masters paper student one-to-one 1:1 optional participation advises advisor student one-to-many 1:M student enroll course many-to-many M:N
Alternative notations writes 1 1 masters paper student advises (1,1) (0, N) advisor optional participation student student enroll N course M
Superclass/subclassOverlapping/disjoint student student O D MSIS MLS ASIS member SCALA member SLA member
uses M N Project Skill P Employee ternary relationships During physical design, these must be broken into several binary relationships.
UML notation employee EID: string Name: string Job: string change_job_class give_raise(sal, amount):number change_manager
UML • Types of diagrams used • class diagrams • class diagrams with interfaces • activity diagrams • use case diagrams • state diagrams
Coming up… • Next time • Meet in the classroom (Wed is next class) • SQL review and modeling • Be thinking about Oracle project ideas and groups and your current issues presentations!