Relational Model
Relational Model
Relational Model
Database System Concepts - 7th Edition 2.1 ©Silberschatz, Korth and Sudarshan
Example of an Instructor Relation
attributes
(or columns)
tuples
(or rows)
Database System Concepts - 7th Edition 2.2 ©Silberschatz, Korth and Sudarshan
Relation Schema and Instance
Database System Concepts - 7th Edition 2.3 ©Silberschatz, Korth and Sudarshan
Attributes
▪ The set of allowed values for each attribute is called the domain of
the attribute.
Database System Concepts - 7th Edition 2.4 ©Silberschatz, Korth and Sudarshan
Relations are Unordered
Database System Concepts - 7th Edition 2.5 ©Silberschatz, Korth and Sudarshan
Database Schema
Database System Concepts - 7th Edition 2.6 ©Silberschatz, Korth and Sudarshan
Keys
▪ Let K R
R = (A1, A2, …, An ) is a relation schema.
Example:
instructor = (ID, name, dept_name, salary)
Database System Concepts - 7th Edition 2.7 ©Silberschatz, Korth and Sudarshan
Keys (Cont.)
▪ Let K R
▪ K is a superkey of R if values for K are sufficient to identify a unique tuple
of each possible relation r(R).
• Example: {ID} and {ID,name} are both superkeys of instructor.