knobit.org

Recognises a foreign-key cycle taken as resolved

edu:Knobit

https://knobit.org/id/knobit/K-814

Also as Turtle · JSON-LD · RDF/XML · AI benchmark on Skilirium

Context functionsResult evaluation
Knobit creation methodsAI generated, human edited
Knobit typesSkill
LCG purposesAssessing the learner's knowledge or skill state
LCG purposesSelecting an assessment task or learning activity
action verbRecognises en
applies knowledgeExplains referential integrity and referential actions
assessment criterionFlags the deficient case and passes the acceptable one. Deficient: `dim_account.primary_card_key` → `dim_card` and `dim_card.account_key` → `dim_account`, both `NOT NULL`; the DDL deploys and the first load has no row it can insert first Acceptable: One direction made optional, or the "primary card" relationship moved into its own table. The cycle is resolved in the logical model, not worked around in the load (the header note is a prompt, not a solution) en
assessment methodskill-tests task: Generated DDL review, Postgres and Snowflake (DDL review skills) en
conforms to profilehttps://oppekava.edu.ee/a/Knobitite_kirjeldamise_ja_seostamise_reeglid#LCG-KNOBIT-0.1
dcterms:identifierK-814
dcterms:licensehttps://creativecommons.org/licenses/by/4.0/
dcterms:sourceReview checklist 05-ddl, row 14; ISO 9075; this skill (08-ddl.md) en
expected resultThe cycle and the load order or deferral it needs en
owl:sameAshttps://bitbucket.org/reffa/ontology/id/knobit/data-modelling/08-ddl/14
rdfs:labelRecognises a foreign-key cycle taken as resolved en
schema:creativeWorkStatusaccepted
schema:isPartOfData modelling (DAMA-DMBOK2)
skos:altLabelForeign-key cycle fallback treated as resolved (generated DDL) en
skos:definitionThe header note saying all tables are created first and every foreign key added afterwards as `ALTER TABLE`. The script runs; the design does not. Two tables each mandatory to the other cannot be loaded without deferring a constraint, and not every engine can defer one. en
skos:prefLabelRecognises a foreign-key cycle taken as resolved en
target objectforeign keys added after table creation en

Used by

includes knobitGenerates DDL per target dialect and reviews it against model, engine, data and deployment
requires knobitGenerate and review DDL