
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.