

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture slide is very easy to understand and very helpful to built a concept about the foundation of computers and Database Design.The key points in these slides are: Relational Model, Relational Instance, Cardinality and Degree, Indivisibility Rule, Ordering Rule, Strong Entity Set, Representation of Weak Entity Set, Discriminator, Relationship Set, Primary Key Issue, Intuitively Simple
Typology: Slides
1 / 25
This page cannot be seen from the preview
Don't miss anything!


















SID Name Major GPA 1234 John CS 2. 5678 Mary EE 3. SSN Name Dept 9999 Smith Math 8888 Lee CS Student SID Name Major GPA Advisor Professor SSN Name Dept
Age Name Parent_SID 10 Bart 1234 8 Lisa 5678 Student SID Name Major GPA Name Age owns Children
--This is a little more complicated--
Depends on the cardinality and participation of the relationship Two possible approaches
Primary Key Issue
No relational model representation necessary
Example – One-to-One Relationship Set SID Maj_ID Co S_Degree 9999 07 1234 8888 05 5678 Student SID Name Major GPA ID Code study Major
Example – One-to-One Relationship Set SID Name Major GPA LP_S/N Hav_Cond 9999 Bart Economy -4.0 123-456 Own 8888 Lisa Physics 4.0 567-890 Loan Student SID Name Major GPA S/N # Have Laptop
Example – Many-to-One Relationship Set SID Name Major GPA Pro_SSN Ad_Sem 9999 Bart Economy -4.0 123-456 Fall 2006 8888 Lisa Physics 4.0 567-890 Fall 2005 Student SID Name Major GPA SSN Professor
Representing Relationship Set Unary/Binary Relationship
Example – N-ary Relationship Set P-Key1 P-Key2 P-Key3 A-Key D-Attribute 9999 8888 7777 6666 Yes 1234 5678 9012 3456 No E-Set 1 P-Key Another Set
Representing Relationship Set Identifying Relationship
SID Name Major GPA 1234 John CS 2. 5678 Homer EE 3. Stud_SID Children 1234 Johnson 1234 Mary 5678 Bart 5678 Lisa 5678 Maggie Student SID Name Major GPA Children The primary key for this table is Student_SID + Children, the union of all attributes