More Related Content
Similar to ch2_jayarao.ppt (20)
ch2_jayarao.ppt
- 1. ©Silberschatz, Korth and Sudarshan
1.1
Database System Concepts
Chapter 2:Introduction to the Relational
Model
Structure of Relational Databases
Database schema
Keys
SQL
- 2. ©Silberschatz, Korth and Sudarshan
1.2
Database System Concepts
A relational database consists of a collection of tables, each of
which is assigned a unique name. For example, consider the
instructor table
- 4. ©Silberschatz, Korth and Sudarshan
1.4
Database System Concepts
Relation
Tuple
Attribute
Relation schema
Relation instance
Degree
Cardinality
Domain
Atomic
Null Values
- 13. ©Silberschatz, Korth and Sudarshan
1.13
Database System Concepts
The null value is a special value that signifies that the value is
unknown or does not exist.
- 19. ©Silberschatz, Korth and Sudarshan
1.19
Database System Concepts
Keys
A superkey is a set of one or more attributes that, taken collectively,
allow us to identify uniquely a tuple in the relation.
- 20. ©Silberschatz, Korth and Sudarshan
1.20
Database System Concepts
Candidate keys are super keys for which no proper subset is a
super key. Such minimal super keys are called candidate keys.
- 31. ©Silberschatz, Korth and Sudarshan
1.31
Database System Concepts
Foreign key
It is an attribute in the table which refers the primary key
of the another table
It is used to link the two tables together.
Maintains referential integrity.
- 40. ©Silberschatz, Korth and Sudarshan
1.40
Database System Concepts
Alternate/secondary key
All candidate key other than the primary key.
Unique key :all candidate key which can support null values