What You'll Learn

  • Predict how NULL and three-valued logic affect comparisons
  • filters
  • sorting
  • DISTINCT and constraints.,Write joins that return exactly the rows you intend
  • and know when a WHERE clause turns an outer join into an inner one.,Use GROUP BY
  • HAVING
  • FILTER
  • grouping sets
  • subqueries and recursive CTEs correctly
  • including their edge cases.,Read window functions precisely: ranking
  • lag and lead
  • default frames
  • ROWS
  • RANGE and GROUPS.,Avoid type traps with integer division
  • numeric versus float
  • casts
  • time zones
  • DST and intervals.,Modify data safely with upserts
  • MERGE and RETURNING
  • and reason about isolation levels
  • locks and indexes.

Requirements

  • Basic SQL experience: you have written SELECT queries with WHERE
  • JOIN and GROUP BY.,Nothing needs to be installed; every query and its data are shown in the question.,A computer
  • tablet or phone with a web browser.

Description

Test How Well You Really Know SQL

SQL looks simple until a query returns something you did not expect. Why does a filter for every status except closed skip some rows? Why does NOT IN suddenly return nothing? Why does a LEFT JOIN behave like an inner join once you add a WHERE clause? Why do two rows with the same date get the same running total? These practice tests check how well you can predict what PostgreSQL really does, one short query at a time.

What this practice test course offers:

  • 200 original multiple-choice questions in 4 practice tests of 50, grouped by topic
  • Short, self-contained queries you must reason about: what does the query return, what error does it raise, or what happens when two sessions run at the same time
  • An explanation for every answer option, plus an overall explanation of the rule behind it
  • Every query was run on PostgreSQL 19 in a fresh database, and every concurrency question in two real sessions, so every answer matches what the database really does
  • Current PostgreSQL included: IGNORE NULLS for window functions and ON CONFLICT DO SELECT (19), RETURNING old and new and virtual generated columns (18), MERGE with RETURNING and NOT MATCHED BY SOURCE (17)

Topics covered:

  • NULL and three-valued logic, IS DISTINCT FROM, COALESCE and NULLIF, sorting with NULLS FIRST and LAST
  • Inner, outer, full, cross, natural and lateral joins, and conditions in ON versus WHERE
  • Aggregates, GROUP BY, HAVING, FILTER, ROLLUP, CUBE, GROUPING and DISTINCT ON
  • Scalar and correlated subqueries, EXISTS, IN, ANY and ALL, CTEs, recursive CTEs, CYCLE and SEARCH
  • Window functions: ranking, lag and lead, frames with ROWS, RANGE and GROUPS, frame exclusion
  • Data types: integer division, numeric versus float, rounding, casts, text, arrays, json and jsonb, dates, timestamps, time zones and intervals
  • INSERT, UPDATE, DELETE, upserts with ON CONFLICT, MERGE, RETURNING, constraints, foreign keys, sequences and identity columns
  • UNION, INTERSECT and EXCEPT, pagination, transactions, savepoints, isolation levels, row locks, and when an index can be used

Who should take this course?

  • Developers and data analysts preparing for interviews where SQL questions come up
  • Backend developers who write SQL every day and want to stop guessing about NULLs, joins and transactions
  • Engineers moving to PostgreSQL from MySQL, SQL Server or Oracle who want to learn where it behaves differently

If you have never written a SELECT statement, start with an SQL fundamentals course and come back here to test yourself.

How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Retake a test a few days later to check that the rules have stuck.

This course is independent and is not affiliated with or endorsed by the PostgreSQL Global Development Group.

Who this course is for:

  • Developers and data analysts preparing for technical interviews that include SQL questions.,Backend developers who use PostgreSQL every day and want a precise model of how queries behave.,Engineers moving to PostgreSQL from MySQL
  • SQL Server or Oracle.,Students who have finished an SQL course and want challenging practice questions.
SQL Mastery: Tricky PostgreSQL MCQ Practice Tests

Course Includes:

  • Price: FREE
  • Enrolled: 0 students
  • Language: English
  • Certificate: Yes
  • Difficulty: Advanced
Coupon verified 11:14 AM (updated every 10 min)

Recommended Courses

500+ AI Security & Responsible AI Interview Q&A [2026]
0
(0 Rating)
FREE

Prompt Injection, Jailbreak Attacks, Data Leakage, PII Protection, AI Security, Adversarial Attacks,

Enrolled
500+ AI Backend Developer Interview Q&A [2026]
0
(0 Rating)
FREE
Category
Development, Web Development,
  • English
  • 0 Students
500+ AI Backend Developer Interview Q&A [2026]
0
(0 Rating)
FREE

Python, FastAPI, Flask, REST APIs, WebSockets, Async Processing, Redis,

Enrolled
DP-100 Microsoft Azure Data Scientist Associate Tests 2026
0
(0 Rating)
FREE

Ace the DP-100 Exam with Practical, Project-Based Learning

Enrolled
Curso SQL: De Principiante a Avanzado
4.543103
(3838 Rating)
FREE
Category
Development, Database Design & Development,
  • Spanish
  • 140477 Students
Curso SQL: De Principiante a Avanzado
4.543103
(3838 Rating)
FREE

Aprende a consultar, unir tablas con JOINs, crear subconsultas avanzadas y optimizar tus consultas SQL paso a paso.

Enrolled
AWS Advanced Networking Specialty ANS-C01 Practice Test 2026
0
(0 Rating)
FREE

Become an AWS Networking Expert & Successfully Pass the ANS-C01 Exam 2026

Enrolled
AI-102: Azure AI Engineer Associate Practice Tests 2026
0
(0 Rating)
FREE

Master Azure AI and Build Intelligent Solutions with Confidence

Enrolled
CompTIA CySA+ (CS0-003) Certification Prep & Practice Tests
0
(0 Rating)
FREE

Master Threat Detection, Incident Response, SOC Operations & Pass the CySA+ Exam with Confidence

Enrolled
CompTIA PenTest+ (PT0-003) Practice Tests 2026
5
(1 Rating)
FREE
Category
IT & Software, IT Certifications,
  • English
  • 908 Students
CompTIA PenTest+ (PT0-003) Practice Tests 2026
5
(1 Rating)
FREE

Master PenTest+ PT0-003 with Scenario-Based Questions & Solutions

Enrolled
CompTIA Security+ (SY0-701) Practice Exam 2026
4.6666665
(3 Rating)
FREE
Category
IT & Software, IT Certifications,
  • English
  • 1074 Students
CompTIA Security+ (SY0-701) Practice Exam 2026
4.6666665
(3 Rating)
FREE

Master Security+ Concepts for SY0-701 Certification

Enrolled

Previous Courses

People Operations: Employee Journey, Hire to Exit 340+ Tools
4.642857
(7 Rating)
FREE
Category
Business, Human Resources,
  • English
  • 3098 Students
People Operations: Employee Journey, Hire to Exit 340+ Tools
4.642857
(7 Rating)
FREE

HR processes that never talk to each other? People operations, employee lifecycle, onboarding, engagement, exit

Enrolled
Facebook Ads For Small Business From Very Basic To Advance
4.46
(115 Rating)
FREE
Category
Marketing, Paid Advertising,
  • English
  • 15959 Students
Facebook Ads For Small Business From Very Basic To Advance
4.46
(115 Rating)
FREE

Detailed Targeting Facebook Ads, Complete Business Page Setup, Fast Facebook Ads

Enrolled
LinkedIn Recruiter Kursu: Sourcing, Aday Arama, 70 araç [TR]
4
(1 Rating)
FREE

LinkedIn'de aday bul: Boolean ve X-ray sorguları, profil kontrol listesi, iletişim şablonları ve 38 aday bulma aracı

Enrolled
Microsoft Copilot for Finance: 80+ Tools, 110+ Prompts
0
(0 Rating)
FREE

Use 80+ tools and 110+ prompts for budgeting, forecasting and FP&A reporting in Microsoft 365 Excel, Word and PowerPoint

Enrolled
Customer Success Director: Cut Churn, Grow NRR, 50+ Tools
0
(0 Rating)
FREE
Category
Business, Sales,
  • English
  • 399 Students
Customer Success Director: Cut Churn, Grow NRR, 50+ Tools
0
(0 Rating)
FREE

Head of Customer Success or Customer Success Manager: cut Churn, grow Retention and NRR in B2B with 50+ practical tools

Enrolled
Customer Service Management: CX, Teams and Ops, 290+ Tools
4.571429
(7 Rating)
FREE
Category
Business, Operations,
  • English
  • 3111 Students
Customer Service Management: CX, Teams and Ops, 290+ Tools
4.571429
(7 Rating)
FREE

Service metrics look fine and customers still leave? Customer service management, CX, support teams, escalation

Enrolled
Strategic Leadership: Direction and Execution, 360+ Tools
5
(6 Rating)
FREE

Strategy approved at the offsite, forgotten by March? Strategic leadership, strategic planning, OKR, change management

Enrolled
B2B Branding: Build Trust That Creates Demand, 430+ Tools
5
(3 Rating)
FREE
Category
Marketing, Branding,
  • English
  • 2985 Students
B2B Branding: Build Trust That Creates Demand, 430+ Tools
5
(3 Rating)
FREE

B2B buyers buy from brands they trust? B2B branding: positioning, voice, market, funnel, channels and the team

Enrolled
LinkedIn Recruiter: talentos ocultos, 61 ferramentas [PT]
3.1666667
(3 Rating)
FREE
Category
Business, Human Resources,
  • Portuguese
  • 524 Students
LinkedIn Recruiter: talentos ocultos, 61 ferramentas [PT]
3.1666667
(3 Rating)
FREE

Você aborda os mesmos 50 perfis que todos? Copie buscas booleanas e X-ray prontas e encontre outros talentos

Enrolled

Total Number of 100% Off coupon added

Till Date We have added Total 816 Free Coupon. Total Live Coupon: 738

Confused which course 100% Off coupon is live? Click Here

For More Updates Join Our Telegram Channel.