Sitemap
Rishil Aman

Rishil Aman

SQL Part 1

2 min readAug 3, 2026

--

SQL (Structured Query Language)

SQL (Structured Query Language) is a language used to communicate with the database.

Data

Data is the raw fact that is used to describe the attributes of an entity.

Database

A database is a place, medium, or container that is used to store data in a systematic and organized manner.

We can place the data randomly in a database, but it will be difficult to fetch and manage it efficiently.

The basic operations that we can perform on a database are known as CRUD operations:

  • Create — Used to insert new data.
  • Read — Used to retrieve existing data.
  • Update — Used to modify existing data.
  • Delete — Used to remove existing data.

DBMS (Database Management System)

DBMS (Database Management System) is software that is used to maintain and manage our database.

Features of DBMS

Security and Authorization are two important features provided by a DBMS.

  • Security: We can understand this with the example of a User ID and Password, which help protect the database from unauthorized access.
  • Authorization: We can understand this with the example of an OTP (One-Time Password), which verifies whether a user is allowed to access the database.

We use SQL (Structured Query Language) to communicate with the DBMS.

A DBMS stores data in file form.

RDBMS (Relational Database Management System)

RDBMS (Relational Database Management System) is a type of DBMS software that is used to maintain and manage our database.

Features of RDBMS

Security and Authorization are two important features provided by an RDBMS.

Get Rishil Aman’s stories in your inbox

Join Medium for free to get updates from this writer.

We use SQL (Structured Query Language) to communicate or interact with an RDBMS.

An RDBMS stores data in table form.

In RDBMS, R stands for Relational Model.

The Relational Model was designed by E. F. Codd.

In the Relational Model, data is stored in the form of tables.

Any DBMS that follows the Relational Model becomes an RDBMS.

Any DBMS that follows the E. F. Codd Rules is also considered an RDBMS.

Table

A table is the logical organization of data that consists of rows and columns.

A cell is the intersection of a row and a column.

A column is also known as an Attribute or Field.

A row is also known as a Record or Tuple.

E. F. Codd Rules

Rule 1

The data entered into a cell must always be a single value (atomic value).

Rule 2

According to E. F. Codd, we can store data in multiple tables. If needed, we can establish a connection between the tables with the help of a key attribute.

Rule 3

In an RDBMS, we can store everything in the form of tables, including metadata.

Metadata refers to the further details of data. It is also known as data about data and is generally auto-generated by the database system.

Rule 4

The data entered into a table can be validated in two ways:

  1. By assigning Data Types.
  2. By assigning Constraints.

Note: Data Types are mandatory, whereas Constraints are optional.

--

--