Skip to content

Fix PostgreSQL type casting issues in Week 9 solutions#32

Merged
lassebenni merged 2 commits into
mainfrom
fix/data-track-week-9-exercise-polish
Jun 28, 2026
Merged

Fix PostgreSQL type casting issues in Week 9 solutions#32
lassebenni merged 2 commits into
mainfrom
fix/data-track-week-9-exercise-polish

Conversation

@lassebenni

Copy link
Copy Markdown
Collaborator

Casts average and sum outputs to numeric so that the ROUND() function compiles and runs successfully on the shared PostgreSQL instance.

Lasse Benninga and others added 2 commits June 25, 2026 10:31
…c sample, assignment cast note

Polish from a Week 9 exercise review (all solutions live-verified against the
shared Azure Postgres: Manhattan top, 0 NULL pickups, 189 duplicate groups,
0 orphans, fact view 56,369 = 56,551 - 182 negatives).

- Ex1: add ORDER BY pickup_datetime before LIMIT 5 so the sample is stable
  between runs (a bare LIMIT returns an arbitrary 5 rows).
- Ex5: tell students 5a returns 0 and 5c returns empty BY DESIGN (pickup IDs
  are complete; orphans do not exist on this load). A 0 is the check passing,
  not a mistake. Prevents the "did I break it?" confusion.
- Ex6: note the practice view is scaled down; the assignment's vw_fact_trips
  also casts pickup_datetime::TIMESTAMP. Flag it so students do not under-build
  the assignment deliverable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@lassebenni lassebenni merged commit 4ffb4ab into main Jun 28, 2026
1 check passed
@lassebenni lassebenni deleted the fix/data-track-week-9-exercise-polish branch June 28, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant