Relational Databases

Tabular or relational databases are those that can be organized in tables.

In opposition to tabular or relational databases there is NoSQL databases.

Database Normalization

You can read more about database normalization on this post.

12 Codd’s Rules

The 12 Codd’s rules were proposed by Codd that should follow ideally a relational table.

  1. Rule 0: The Foundation Rule
  2. Rule 1: Information Rule
  3. Rule 2: Guaranteed Access Rule
  4. Rule 3: Systematic Treatment of Null Values
  5. Rule 4: Active/Dynamic Online Catalog based on the relational model
  6. Rule 5: Comprehensive Data SubLanguage Rule
  7. Rule 6: View Updating Rule
  8. Rule 7: Relational Level Operation (High-Level Insert, Update and delete) Rule
  9. Rule 8: Physical Data Independence Rule
  10. Rule 9: Logical Data Independence Rule
  11. Rule 10: Integrity Independence Rule
  12. Rule 11: Distribution Independence Rule
  13. Rule 12: Non Subversion Rule

Relational Database Queries

Users and programs interact with relational databases through queries.

The most popular language for relational database queries is SQL.

SQL

Structured Query Language (SQL) is the most popular query language for relational databases.

You can read this post that is an introduction to SQL.

Database Issues

Dirty read n SQL occurs when a transaction reads data that has been modified by another transaction, but not yet committed. In other words, a transaction reads uncommitted data from another transaction, which can lead to incorrect or inconsistent results.

Non-repeatable read

Phantom read

List of Relational Databases

List of relational databases:

  • PostgreSQL
  • MariaDB
  • MySQL
  • SQLite

PostgreSQL

PostgreSQL is free and open source (FOSS), under a Postgres License.

Is developed by the PostgreSQL Global Development Group.

Official website

Code repository

MariaDB

MariaDB is a free and open source software (FOSS), under a GPLv2 license.

It is a community-based project that was forked from MySQL when it was acquired by Oracle.

Official website

MySQL

MySQL is currently owned and developed by American company Oracle. MySQL was originally developed by Swedish company SQL AB, that was acquired by Sun Microsystems, that was acquired by Oracle.

MySQL Community is free and open source (FOSS), under a GPL license.

MySQL Enterprise is proprietary.

SQLite

SQLite is written in C.

It is public domain, so it is considered free and open source (FOSS).

Official website

CockroachDB

CockroachDB is a commercial database.

You might also be interested in…

External Links

  • 12 Codd’s Rules
    • Wikipedia community; “12 Codd’s rule”; Wikipedia

Leave a Reply

Your email address will not be published. Required fields are marked *