Database BasicsCore· 30 min read

What is a Relational Database?

Tables, rows and columns — the organised, permanent home for your app’s data.

What you will learn

  • Explain what a database is
  • Understand tables, rows and columns
  • Know what SQL is for

Data in tables

A relational database stores data in tables — like spreadsheets. Each column is a field (name, email), and each row is one record. SQL (Structured Query Language) is how you create, read and change that data.

idnameemailage
1Ashaasha@x.com22
2Raviravi@x.com25
3Meerameera@x.com23

Above is a users table: 4 columns, 3 rows. MySQL is one of the most popular relational databases — free, fast and used everywhere (including with PHP and Laravel).

Note: NoSQL databases like MongoDB store flexible documents; relational databases like MySQL store structured tables with fixed columns and strong relationships. Both are widely used — you are learning the relational side here.

Q. In a database table, what is a single record called?

Answer: A row is one record. Columns are the fields (name, email); SQL is the query language.

✍️ Practice

  1. Sketch a products table with sensible columns.
  2. Identify the columns and rows in any spreadsheet you have.

🏠 Homework

  1. Design tables for a library app (books, members) on paper.
Want to learn this with a mentor?

CodingClave runs guided, project-based training (28-day, 45-day & 6-month batches).

Explore Training →