Stage 8: Generate and review DDL
Knobit of Data modelling · K-817 · Skill
Recognises a length taken from sample data
What it means
A `VARCHAR`/`CHAR` sized from the data that happened to be loaded in development. An IBAN is up to 34 characters, a BIC is 8 or 11, a SEPA party name is 70. Too short truncates on some engines and errors on others, and a truncated IBAN is a payment to nobody.
How it is assessed
Flags the deficient case and passes the acceptable one. Deficient: `dim_account.account_number VARCHAR(20)` on a mart that will also hold non-Estonian accounts: correct for every Estonian IBAN and 14 characters short of a Maltese one Acceptable: Either `VARCHAR(34)` from the standard with the 20-character Estonian form as a DQ rule scoped to Estonian IBANs, or `VARCHAR(20)` with the Estonia-only scope written in the column `comment` and in the rule. What is not acceptable is a length nobody chose
Builds on
- Recognises a physical domain differing from the logical domainK-617 · Skill
- Explains attribute domainsK-562 · Knowledge
Needed by
- None