









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
An introduction to the relational data model, explaining what a relation is, the concept of schemas, and the benefits of using relations. It also covers the process of converting entity sets and relationships into relations, and discusses the risks and solutions for handling many-many relationships and weak entity sets. Examples are given to illustrate the concepts.
Typology: Slides
1 / 16
This page cannot be seen from the preview
Don't miss anything!










2
Attributes (column headers)
Tuples (rows)
7
Con- sumers Likes Candies
Likes(consumer, candy)
Favorite
Favorite(consumer, candy)
Married
husband
wife
Married(husband, wife)
name addr name manf
Buddies
Buddies(name1, name2)
11
Logins At Hosts
name name
Hosts(hostName, location) Logins(loginName, hostName, billTo) At(loginName, hostName, hostName2)
Must be the same
billTo
At becomes part of Logins
location
13
Candies
Choc- olates
isa
name (^) manf
color
14
name manf Twizzler Hershey Candies
name manf color Snickers M&M/Mars light Chocolates
Good for queries like “find the color of chocolate candies made by M&M/Mars.”
16
name manf color Twizzler Hershey NULL Snickers M&M/Mars dark Candies
of attributes that are usually NULL.