The relational data model

Get Started. It's Free
or sign up with your email address
The relational data model by Mind Map: The relational data model

1. relational set Operators

1.1. Relational algebra

1.1.1. Defines theoretical way of manipulating table contents using relational operators

1.1.2. Use of relational algebra operators on existing relations produces new relations


1.2. Relational Set Operators

1.2.1. Natural Join Links tables by selecting rows with common values in common attribute(s)

1.2.2. Equijoin Links tables on the basis of an equality condition that compares specified columns

1.2.3. Theta join Any other comparison operator is used

1.2.4. Outer join Matched pairs are retained, and any unmatched values in other table are left null

2. what is means by key ?

2.1. - Each row in a table must be uniquely identifiable - Key is one or more attributes that determine other attributes - Key’s role is based on determination If you know the value of attribute A, you can determine the value of attribute B - Functional dependence Attribute B is functionally dependent on A if all rows in table that agree in value for A also agree in value for B

3. the types of keys

3.1. Composite key Composed of more than one attribute

3.2. Key attribute Any attribute that is part of a key

3.3. Superkey Any key that uniquely identifies each row

3.4. Candidate key A superkey without unnecessary attributes

3.5. Foreign key (FK) An attribute whose values match primary key values in the related table

3.6. Secondary key Key used strictly for data retrieval purposes

4. Characteristics of relational table

4.1. a table is percieved as two-dimensional structure composed of rows and columns.

4.2. each table represent a single entity occurance within the entity set.

4.3. each table column represents an attribute, and each column has a distinct name.

4.4. each row/column intersection represents a single data value.

4.5. all values in a column must conform to the same data format.

4.6. each column have a specific ranges of value known as attribute domain.

5. Relatinship between relational databse

5.1. * 1:M relationship

5.1.1. -Relational modeling ideal -Should be the norm in any relational database design

5.2. * 1:1 relationship

5.2.1. - Should be rare in any relational database design

5.3. * M:N relationships

5.3.1. - Cannot be implemented as such in the relational model - M:N relationships can be changed into 1:M relationships

5.3.2. -Implemented by breaking it up to produce a set of 1:M relationships - Avoid problems inherent to M:N relationship by creating a composite entity Includes as foreign keys the primary keys of tables to be linked

6. Rules of Integrity

6.1. Referential integrity

6.1.1. is a database feature in relational database management systems that ensures the relationships between tables in a database remain accurate by applying constraints to prevent users or applications from entering inaccurate data or pointing to data that doesn't exist.

6.1.2. The primary key of a database table is a unique identifier assigned to each record. Each table will have one or more columns designated as the primary key.

6.2. Entity Integrity

6.2.1. ensures that there are no duplicate records within the table and that the field that identifies each record within the table is unique and never null.

6.2.2. The primary key for a row is unique; it does not match the primary key of any other row in the table.

6.2.3. The primary key is not null, no component of the primary key may be set to null.