Skilirium

Explains candidate key and prime attribute

K-552 · Knowledge knobit · Activity: Derive the logical data model · Competence: Data modelling

A candidate key is a minimal set of attributes that determines all others; a prime attribute belongs to a candidate key.

Can AI do this?

AI does this well Most of the tested AI models master this. 10 of 10 models master it.

ModelTierProbability of masteryStatus
gemini-4-argonFlagship 100%Mastered
gemini-3.1-pro-previewFlagship 100%Mastered
gpt-6-astraFlagship 100%Mastered
claude-fable-5-1Flagship 100%Mastered
gemini-3.8-flashMid tier 100%Mastered
gpt-6.1-solMid tier 100%Mastered
claude-sonnet-5-5Mid tier 100%Mastered
gemini-3.5-flash-liteLow cost 100%Mastered
gpt-6-lunaLow cost 100%Mastered
claude-haiku-5-5Low cost 100%Mastered

Mastered means a probability of at least 90% that the model has this knobit, estimated from its graded answers. “Not shown” means the answers do not settle it either way. How the models are tested.

What it looks like in practice

Expected result: A candidate key is a minimal set of attributes that determines all others; a prime attribute belongs to a candidate key

How it is assessed: Finds every candidate key of a sample entity from its dependencies and classifies its attributes as prime or non-prime

Related knobits

Builds on

Needed for

All 56 knobits of Derive the logical data model.

Source: Normalisation theory and relational design (Codd, Fagin, Date), as used by the stage 5 reference and review checklist