Simply speaking, a data model is the blueprint of any database system. Several types of data models exist if we consider the history and the evolution of database systems throughout the ages. To name a few, we have:
In today's database market, the relational data model is the one that is prevalent precisely due to the notion of data independence it brought out in the evolution of database management systems. Let's learn about it in this shot.
The relational data model is based on sets theory and predicate calculus. As mentioned earlier, it offers better data independence by:
This is how we can view the relational data model:
Let’s define each of the terms in the image above.
Data integrity is essential for a database. To achieve this, every DBMS implements rules or constraints that the users must respect to ensure that the result is always in a correct state.
Let's see what those rules are:
Relational algebra is a set of operators to manipulate relations. Each relational algebra operator takes either one or two relations as its input and produces a new relation as its output. Such operators are:
On the other hand, relational calculus represents an alternative to relational algebra as a candidate for the manipulative part of the relational data model.
This shot was about the relational data model, the most widely used in today's database. Here's a recap of what we learned so far: