Add lesson 18: Conditional expressions#58
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Opens Module 5 (Intermediate querying) with a lesson on conditional expressions: searched and simple
CASE(bucketing, custom sort orders, NULL behavior with noELSE), pivot-style conditional aggregation withcount(*) FILTER/sum(CASE …),COALESCEfallback chains (display defaults, ORDER BY, join conditions), thevalue / NULLIF(divisor, 0)divide-by-zero guard, and a brief look atGREATEST/LEAST.The seed is a small help-desk
ticketstable (8 rows) deliberately full of NULLs — unassigned tickets, missing contact info, unrated satisfaction, and one ticket with zero agent replies to make the NULLIF guard meaningful. SELECT-only lesson, so no checks per CONTRIBUTING.md.Note: this PR bootstraps the shared
lessons/05-intermediate-querying/module.yaml, which the sibling CTE and window-function PRs create with identical content so they merge cleanly.Part of #6
🤖 Generated with Claude Code