Menu▾

Topic

Schema design

Primary keys, foreign keys, and shaping tables so a fact is stored exactly once. Interviewers ask this alongside query-writing, not instead of it, and it's the half a query-language tutorial alone never covers.

New to this? Read the free Database Fundamentals tutorial.

easyAdd a primary key to an unkeyed orders tableFree→easyClose the loophole on a column that's never actually nullFree→mediumLink orders to customers with an enforced, cascading foreign keyFree→