MiniCTRM - Tutorial: The deal model in SQL - Power
→ to begin · N for the speaker notes
On a phone: Next or a swipe left to begin, Notes for the words.
What you'll learn
- The map – The three tables on the Data Model diagram, their grain, and the SQL Query screen.
- The deal table – One row per trade: its schema, your deal's row, the ticket beside it, and dates stored as text.
- Foreign keys – Ids, not names: joining to counterparty and the rest, and the deal a JOIN loses.
- The deal_side table – One row per leg: the legs, what the floating leg floats on, and the key to use.
- The payment profile – One row per leg per period: the cash flows, their signs, the currency, and net cash by date.
- The tables around them – Type headers, physical delivery points, fees and derived tables.
- The mistakes – A sum counted once per joined row, and the checklist before you trust a query.
Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.