Relational data model is Definition, concept, structure and theory of normalization

Table of contents:

Relational data model is Definition, concept, structure and theory of normalization
Relational data model is Definition, concept, structure and theory of normalization
Anonim

The relational data model is a unique approach to managing parameters using structure and language according to single order predicate logic. It was first described in 1969 by the English scientist Codd. In this project, all parameters are presented as tuples grouped into certain relationships.

The purpose of the relational data model…

relational data representation model
relational data representation model

…is to provide a declarative method for specifying models and queries.

Users directly note what information the database contains and what theory they want from it. And also let the database management software take care of describing the structures to store it. The information retrieval procedure for responding to requests is also important.

Most RDBs use SQL data definitions and a search language. These systems implement what can be thought of as an engineering approximation torelational model.

A table in a SQL database schema corresponds to a predicate variable. Key constraints and SQL queries match predicates.

However, such databases deviate from the relational model in many details, and Codd has vehemently opposed changes that compromise the original principles.

Overview

types of data models relational data model
types of data models relational data model

The main idea of the relational data model is the description of the entire database as a set of predicates for the final component of the variables, describing the restrictions on possible values and their combinations. The content at any given time is the final (logical) model. That is, a set of relations, one per predicate variable, so that all components are satisfied. This is the relational data model.

Alternatives

relational data model structure
relational data model structure

Other models are hierarchical and network systems. Some of them, using older architectures, are still popular in high capacity data centers. Or in cases where existing systems are so complex and abstract that transition to them using the relational model would be prohibitively expensive. And also of note are the new object-oriented databases.

Implementation

relational data model concepts
relational data model concepts

There have been several attempts to get the true materialization of RMD, originally defined by Codd and explained by othersscientists.

The relational data representation model was the main one of its kind, which was described in formal mathematical terms. Hierarchical and network bases existed before relational systems, but their specifications were relatively informal. Once RMD was defined, many attempts were made to compare and contrast different models - and this led to more rigorous descriptions of early systems. Although the procedural nature of the data manipulation interfaces for hierarchical and network databases limited the possibilities for formalization.

Themes

The fundamental assumption about the concept of a relational data model is that they are all represented as a mathematical "p" - typical relations, "Cn" - a pairwise relationship, which is a subset in the Cartesian product of several domains. In the mathematical model, reasoning about such data is carried out in a two-valued predicate logic, which means that for each sentence there are two possible evaluations: either true or false (and there is no third value, such as unknown or not applicable, each of which is often associated with the concept of 0). Data is processed using calculus or algebra, which are equivalent in expressive power.

Types of data models, relational data model

RMD allows the developer to create a consistent, logical view of information. This is all achieved by incorporating the stated constraints into the database design, commonly referred to as the logical schema. The theory is to develop a processmodel normalization, whereby a design with certain desired properties can be selected from a set of logically equivalent alternatives. In access plans and other implementations and operations, the details are handled by the DBMS engine and are not reflected in the logical model. This is in contrast to common practice in which performance tuning often requires changes to the logic function.

The basic relational data model represents a building block - it is a domain or type of information, usually reduced to a minimum. A tuple is an ordered set of attribute values. And they, in turn, are a mutual pair of name and type. It can be either a scalar value or a more complex one.

A relation consists of a header and a body

fundamentals of the relational data model
fundamentals of the relational data model

The first is a set of attributes.

The body (with the nth relation) is a set of tuples.

The tangency header is also the subject of each structure.

The relational data model is defined as a set of n-tuples. In both mathematics and MRD, a set is an unordered collection of unique non-duplicated elements, although some DBMSs impose a sequence on their data. In mathematics, a tuple has an order and allows for duplication. E. F. Codd originally set up tuples using this mathematical definition.

Later one of E. F. Codd's great ideas was that using attribute names instead of ordering would be much more convenient (generallycase) in a relationship-based computer language. This statement is still useful today. Although the concept has changed, the name "tuple" has not been transformed. An immediate and important consequence of this distinction is that in the relational model the Cartesian product becomes commutative.

A table is a common visual representation of relationships. A tuple is similar to the concept of a string.

Relvar is a named variable of some particular type of tangent to which at all times some relation of that type is assigned, although the gaze may contain null tuples.

Basics of the relational data model: all information is represented by information values in relationships. In accordance with this principle, the relational base is a set of relvars, and the result of each query is represented as a tangency.

The consistency of a relational database is not enforced by rules built into the applications that use it, but rather by constraints declared as part of the logical schema and enforced by the DBMS for all applications. Restrictions are expressed in the use of relational comparison operators, of which only one is a subset (⊆), theoretically sufficient. In practice, several useful shortcuts are expected to be available, of which candidate keys and external source constraints are the most important. This is what the relational data model is all about.

Interpretation

In order to fully appreciate RMD, it is necessary to understand the intended interpretationas a relation.

The body of a touch is sometimes called its extension. This is because it should be interpreted as representing an increase in some predicate. This is the set of true sentences that can be formed by replacing each free variable with a name.

There is a one-to-one correspondence between object-relational data models. Each tuple of the relation body provides attribute values to instantiate the predicate by substituting each of its free variables. The result is a statement that is considered true due to the occurrence of a tuple in the body of the relation. Conversely, every process whose title matches the relationship name but does not appear in the body is considered false.

This assumption is known as the closed world hypothesis. It is often violated in practical databases, where the absence of a tuple may mean that the truth of the corresponding sentence is unknown. For example, the absence of certain terms ("John", "Spanish") in the Language Skills Chart may not necessarily be proof that a boy named John does not speak Spanish.

Application to databases, normalization theory

The information subject used in a typical relational RDM might be a set of integers, a set of character strings that make up dates, or two booleans true and false, and so on. The corresponding subject names for these figures can be strings with the names "Index", "Do the necessary work","Time", "Boolean" and so on and so forth.

However, it is important to understand that relational theory does not specify which types should be supported. And it is indeed true, it is currently expected that provisions will be available to custom entities in addition to the built-in ones provided by the system.

Attribute

the relational data model represents
the relational data model represents

This is the term used in theory for what is usually called a column. Similarly, table is commonly used in place of the theoretical term tangency (although it is by no means synonymous with relation in SQL). The data structure of a table is specified as a list of column definitions, each with a unique column name and the type of values allowed for it.

Attribute value is an entry at a specific location, such as John Doe and 35.

A tuple is basically the same as a row, except that in SQL RDBMS, where the meanings of the columns in a row are ordered, the tuples are not separated. Instead, each definition value is identified solely by its name, not by its ordinal position in the tuple. The attribute name can be Name or Age.

Attitude

the relational data model is
the relational data model is

It is a structure definition table along with the appearance of data in that structure. The definition is the header, and the data in it is the body, a set of rows. The relationship variable is usually called the main table. The title of the value assigned to it inany time matches the one specified in the given cell, and its body matches the one it was last assigned, invoking some update statement (usually INSERT, UPDATE, or DELETE).

Set-theoretic formulation

Basic concepts in the relational model of relations are the names and names of attributes. They need to be represented as strings such as "Person" and "Name" and will usually need to use variables to span them. Another basic concept is a set of atomic values that contains necessary and important meanings such as numbers and strings.

Recommended: