Mind map
The Relational Model
Map content
The Relational Model
An entity is something of importance to a user that needs to be represented in a database.(represents one theme)
A relation is a two-dimensional table that has specific characteristics. (like a matrix, consist of rows and columns)
- Characteristics of a Relation: o Rows contain data about an entity o Columns contain data about attributes of the entity o Cells of the table hold a single value o All entries in a column are of the same kind o Each column has a unique name o The order of the rows and columns are unimportant o No two rows may be identical
Synonyms : Table = File = Relation Row = Record = Tuple Column = Field = Attribute
A key is one (or more) column(s) of a relation that is (are) used to identify a row.
- o Nonunique Key : Data value may be shared among several rows
- o Unique Key : Data value is unique for each row
A candidate key is called “candidate” because it is a candidate to become the primary key. A candidate key is a unique key.
A composite key is a key that contains two or more attributes. For a key to be unique, it must often become a composite key.
A primary key is a candidate key chosen to be the main key for the relation.
A surrogate key is a unique, numeric value that is added to a relation to serve as the primary key.A surrogate key is often used in place of a composite primary key.
To preserve relationships, you may need to create a foreign key.A foreign key is a primary key from one table placed into another table.The key is called a foreign key in the table that received the key
Referential integrity states that every value of a foreign key must match a value of an existing primary key.
Functional Dependency :a relationship between attributes in which one attribute (or group of attributes) determines the value of another attribute in the same table.
The attribute that we use as the starting point (the variable on the left side of the equation) is called a determinant.
Information
- Description
- Mind Map on The Relational Model, created by ga Alamri on 12/04/2021.
- Created by
- ga Alamri
- Views
- 0
- Rating