RANIARANIA Academy

SQL Basics — Querying Data

Learn to retrieve exactly the data you need from a PostgreSQL database using SELECT, WHERE, ORDER BY and friends. You will filter rows precisely, handle NULLs safely, match text patterns, and shape result sets so a query returns the right columns in the right order.

Watch the free preview

Your first SELECT — columns, aliases and FROM — free to watch, no account needed.

PostgreSQL BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Retrieve exactly the data you need with precise SELECT queries
  • Filter rows using comparison and logical operators in WHERE
  • Sort, page and de-duplicate results with ORDER BY, LIMIT/OFFSET and DISTINCT
  • Match text with LIKE and ILIKE pattern searches
  • Handle NULLs safely using IS NULL and COALESCE

Syllabus

Reading Data with SELECT
Your first SELECT — columns, aliases and FROMFree preview15 min
DISTINCT and ORDER BY — de-duplicating and sorting15 min
Filtering Rows with WHERE
WHERE — comparison and logical operators15 min
LIMIT and OFFSET — capping and paging results15 min
Text Patterns and Missing Values
Pattern matching with LIKE and ILIKE15 min
NULL handling with IS NULL and COALESCE15 min
Composing Precise Queries
The full query — clause order and how it fits together15 min
A realistic retrieval — building a precise result set15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min