Chapter 0 · Lesson 1 of 3

Tables, Rows, and Columns

Learn how a database table organizes data into rows and columns, and why that structure is the mental model behind every SQL query.

Before writing any SQL, it helps to understand how data is organized in a database.

The core building block is a table. A table is a lot like a spreadsheet: data is arranged in rows and columns.

Each column represents a property — for example "name", "department", or "salary". Every column has a header that describes what it holds.

Each row is one record — one employee, one order, one measurement. Every row contains a value for each column.

This is what makes the data structured: every row follows the same shape. There are no surprises — if the table has five columns, every row has exactly five values.

This lesson is theory-focused. Read it, then mark it complete in the Learn SQL panel before moving on.

Open this lesson in the SQL editor

Lessons in Understanding Data

Build the mental model behind SQL: how tables store rows and columns, why data types matter, and how missing values work with NULL.

  1. 01 · Tables, Rows, and Columns
  2. 02 · Data Types
  3. 03 · Missing Values with NULL

Related guides