DB - 07 Relation

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 10

Database Systems

LECTURE #:07

FACULTY OF CS & IT
Relational Model Terminology
 The relational model was invented by E.F. Codd
 A relation is a table with columns and rows.
 Only applies to logical structure of the database, not the
physical structure.
 Attribute is a named column of a relation.
 Domain is the set of allowable values for one or
more attributes.
 Domain refers to:
 Data type of values &
 Range of Values

2
Cont
 Tuple is a row of a relation.
 Degree is the number of attributes in a
relation.
 Cardinality is the number of tuples in a
relation.
 Relational Database is a collection of
normalized relations with distinct relation
names.

3
Cont
Examples of Attribute Domains
Alternative Terminology for
Relational Model
Database Relations
 Relation schema
 Named relation defined by a set of attribute and domain

name pairs
 Relational database schema
 Set of relation schemas, each with a distinct name.
Properties of Relations
 Unique Identifier for Relations
 Relation name is distinct from all other relation names in

relational schema.
 Atomic Values
 Each cell of relation contains exactly one atomic (single)

value.
 Unique Identifier for Attributes
 Each attribute has a distinct name.

 Domain Values for Attributes.


 Values of an attribute are all from the same domain.
Properties of Relations
 No Duplication
 Each tuple is distinct; there are no duplicate tuples.

 Order of Attribute not Necessary


 Order of attributes has no significance.

 Order of Records not Necessary


 Order of tuples has no significance, theoretically.
 Logical relationship
 Data from the multiple relations can be accessed by the
logical relation among the relations by defining the
database keys.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy