A relational database is a kind of database that is based on the relational model of data, that is, the kind of model that organizes data into tables of rows and columns along with a unique key identifying each row.
To access the data organized in such a format, we make use of Structured Query Language (SQL) that enables us to fetch data from a database in a fairly easy manner. Here is an example of an SQL query in MySQL that helps by fetching the records from a table inside a database:
mysql> select * from employee -> ; +----+---------+--------+---------+---------------+ | id | name | salary | retired | department_id | +----+---------+--------+---------+---------------+ | 1 | alpha | 72000 | 0 | 0 | | 2 | beta | 12000 | 0 | 0 | | 3 | gamma | 60000 | 0 | 0 ...