Free Handbook - What you need to know about relational database management systems

_Introducing RDBMS - Relational Database Management System. Read more to learn about the basis for SQL.
_

By Gonçalo Calvinho, Role — Feb 04, 2022 — 15 min. — Databases, Best Practices, Free Guides

What is SQL?

Standard computer language for Relational Database Systems. It’s used to store, manipulate and retrieve data in a relational database.

It allows users to access and manipulate data, create or destroy database objects and set user permissions.

SQL Commands

The standard SQL commands used to interact with the database are classified into 3 distinct categories (DDL, DML and DCL)

CREATE | Creates a new database object (table, view, etc) |
ALTER | Modifies an existing database object |
DROP | Deletes objects in the database |

SELECT | Retrieves records from one or more tables |
INSERT | Creates a record |
UPDATE | Modifies records |
DELETE | Deletes records |

GRANT | Assings privileges to users |
REVOKE | Removes granted privileges |
Constraints

Constraints are the rules enforced on data columns on a table. These are used to limit the type of data that can be inserted into a column, ensuring the accuracy and reliability of the data in the database.

Some of the most commonly used constraints in SQL are:

RDBMS

RDBMS stands for Relational Database Management System, and is the basis for SQL. It’s a database management system that is based on the relational model (all the data is related to each other ).

The data in a RDBMS is stored in database objects called tables. A table is basically a collection of related data, consisting of columns and rows.

A column is a field in a table designed to maintain specific information about every record in the table.

A row is an individual record of data in a table. It is a collection of attributes.

Designing a database: Best Practices

If you enjoyed this text, continue to explore our blog and check out other technical articles and guides.

See all posts