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 editorLessons 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.
Related guides
What Is a Database Table? Rows, Columns, and the Mental Model Behind SQL
Before SQL feels natural, you need one simple mental model: tables are structured collections of records with predictable columns.
SQL Data Types Explained: Text, Numbers, Dates, and Better Questions
Data types are the reason SQL knows the difference between a name, a salary, and a hire date — and that difference shapes every query you write.
SQL NULL Explained: How Missing Values Work and Why They Matter
NULL is SQL's way of saying a value is missing or unknown — and it behaves differently from almost every other value beginners expect.