Loading Data Driven Insights
Preparing your learning content.
Preparing your learning content.
A beginner-friendly guide to SQL keywords, what they do, and how they help build database queries.
SQL keywords are special words used to write database instructions.
They tell the database what action you want to perform, such as reading data, filtering rows, adding records, changing values, or deleting data.
Keywords give SQL its meaning.
Without keywords, the database would not understand what you want.
SELECTChoose columnsFROMChoose a tableWHEREFilter rowsORDER BYSort resultsGROUP BYGroup dataHAVINGFilter grouped dataA SELECT query is used to read data from a table.
In this example, we will read data from an Employees table.
Employees
SELECT
employee_name,
department
FROM Employees;
SELECT is used to choose columns.
FROM is used to choose the table.
The WHERE keyword is used to filter rows.
This query returns only employees from the Sales department.
SELECT
employee_name,
department,
salary
FROM Employees
WHERE department = 'Sales';
Output
Common SQL keywords can be grouped by what they do.
Learning SQL in order?
Use the roadmap to follow each SQL topic step by step, from relational database basics to advanced query techniques.
Back to SQL RoadmapRelated lessons
SQL vs NoSQL Databases
A beginner-friendly comparison of SQL and NoSQL databases, including structure, flexibility, examples, and when to use each one.
RDBMS Benefits and Limitations
Learn what an RDBMS is, why it is useful, where it works well, and when it may not be the best database choice.
What Are Relational Databases?
A beginner-friendly introduction to relational databases, tables, rows, columns, relationships, and how SQL connects related data.