Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PostgreSQL SQL: Filter & Sort Data with Advanced Queries

PostgreSQL SQL: Filter & Sort Data with Advanced Queries

Filter and sort data in PostgreSQL using SQL queries, string functions, conditional CASE logic, and clean sorting.
Created byACHRAF ER-RAYA
Last updated 9/2026
English

What you'll learn

  • Filter complex PostgreSQL datasets with precision using advanced WHERE conditions, multi-operator logic, and wildcards.
  • Clean, extract, and format text using core PostgreSQL string functions like CONCAT, SUBSTRING, TRIM, and ILIKE.
  • Build dynamic queries using CASE WHEN conditional logic to categorize data and transform outputs on the fly.
  • Structure and paginate query results with multi-column ORDER BY, explicit NULL handling, and LIMIT/OFFSET logic.

Course content

6 sections • 7 lectures • 1h 34m total length
  • Deep-Dive Masterclass: Precision Data Filtering and Pattern Matching in Post-SQL17:43

Requirements

  • No prior SQL experience required—we start with the fundamentals and cover free PostgreSQL setup step-by-step.

Description

This course contains the use of artificial intelligence.

Write PostgreSQL queries that return the right rows, in the right order, for real business decisions.

Who this course is for

•Beginners who know basic SELECT syntax and want useful filters.

•Analysts who need reliable date, text, NULL, and status conditions.

•Developers who want readable PostgreSQL patterns for application data.

•Data professionals preparing for SQL tasks, interviews, or portfolio projects.

•Anyone who wants to stop guessing why a query returns the wrong rows.

What you will learn

•Filter rows with WHERE, comparison operators, IN, and BETWEEN.

•Combine AND and OR conditions with explicit parentheses.

•Handle missing values correctly with IS NULL and IS NOT NULL.

•Search and clean text with lower, trim, length, LIKE, and ILIKE.

•Apply conditional business logic with CASE.

•Sort by multiple columns and create deterministic tie-breakers.

•Control the position of NULL values in ordered results.

•Use LIMIT safely for previews and top-result workflows.

•Debug queries incrementally and test edge cases.

•Complete a production-style revenue triage project.

Requirements

Students need a PostgreSQL environment such as pgAdmin, DBeaver, DataGrip, or psql, plus a basic understanding of tables and SELECT. No advanced database administration is required.

Final project

Students build a revenue triage query from a realistic business brief. The finished query filters recent actionable orders, excludes cancelled and incomplete rows, applies a paid-before-pending priority, sorts ties deterministically, and returns the top 10 results. Students submit the SQL, sample output, assumptions, and edge-case checks.

Who this course is for:

  • Aspiring data analysts, software developers, and business professionals who want to master precision data extraction, filtering, and reporting in PostgreSQL.