CoreTrail

Practice & revision

Apply the patterns, compare dialects, and test your understanding.

Chapter overview 3 min read
On this page

Choose the pattern yourself

Use this chapter to check whether you can choose the technique without the chapter name giving it away. Attempt the query before opening the worked solution, then keep a short note on the mistake or assumption that changed your answer.

Decision reference

Goal Practice mode
Recall syntax Chapter quick references
Recognize recurring problems Pattern cookbook
Solve without a label Mixed drills
Explain performance choices Diagnosis drills
Collect execution evidence Native PostgreSQL labs

In this chapter

Mix the problems

Do not work through ten versions of the same pattern in a row. Mix joins, aggregation, windows, dates, and existence problems so the technique is not obvious from context. When a query fails, keep the smallest input that exposes why and retry it later without the old solution.

Type a concept, keyword, or function.