Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Review - Concepts
Relational Model is made up of tables
A row of table A column of table A table Cardinality Degree = a relational instance/tuple = an attribute = a schema/relation = number of rows = number of columns
Review - Example
Attribute Cardinality = 2 tuple/relational instance
Major CS EE
4 Degree
A Schema / Relation
Major
GPA
Dept Math CS
Major
GPA
Age 10 8
* Primary key of Children is Parent_SID + Name
Identifying Relationship
No relational model representation necessary
Student
study
Major
Major
GPA
Maj_ID Co 07 05
Student
Have
Laptop
Major
GPA
Brand
Student
Advisor
Professor
Major
GPA
Dept
Name
P-Key1
A relationship
Another Set
D-Attribute Yes No
SSN
Name
SSN
Professor Address
9999 8888
Street
City
Major
GPA
Stud_SID 1234 SID 1234 5678 Name John Homer Major CS EE GPA 2.8 3.6 1234 5678 5678 5678
Example
SID Status ISA Student
SSN
Name
Person
Gender
Major
GPA
SSN 1234 5678 SSN 1234 5678 SID 9999 8888 Status Full Part Major CS EE GPA 2.8 3.6
Example
SSN
Name
SJSU people
SID
Major
Major CS EE
Representing Aggregation
Name Advisor SSN Name Student Professor Dept
SID
Name
Code 04 08
Primary key of Dept
Code
Applause??
Thank you