0% found this document useful (0 votes)
14 views6 pages

Relational Model

The document discusses the relational model, focusing on the concepts of superkeys, candidate keys, and primary keys in a database. It explains that a superkey can uniquely identify tuples in a relation, while a candidate key is a minimal superkey. Additionally, it introduces foreign key constraints, which ensure that values in one relation correspond to values in another, providing an example involving an instructor and department relationship.

Uploaded by

shamaparveen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views6 pages

Relational Model

The document discusses the relational model, focusing on the concepts of superkeys, candidate keys, and primary keys in a database. It explains that a superkey can uniquely identify tuples in a relation, while a candidate key is a minimal superkey. Additionally, it introduces foreign key constraints, which ensure that values in one relation correspond to values in another, providing an example involving an instructor and department relationship.

Uploaded by

shamaparveen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Relational Model

instance
Keys
• 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.
• Superkey K is a candidate key if K is minimal
Example: {ID} is a candidate key for Instructor
• One of the candidate keys is selected to be the primary key.

– Which one?
• Foreign key constraint: Value in one relation must appear in another
– Referencing relation
– Referenced relation
– Example: dept_name in instructor is a foreign key from instructor referencing
department
Univerity database

You might also like