One Primary Address
Design the addresses table for user addresses. It must store id as the primary key, user_id, and the is_primary flag; a user may have many addresses, but the database must prevent more than one row with is_primary = true for the same user_id.
Alleen CREATE/ALTER/DROP — geen afsluitende SELECT nodig.
Log in om je inzendingsgeschiedenis te zien
InloggenLog in om de AI-mentor te gebruiken
InloggenGeen startschema
Deze opdracht begint zonder tabellen — je maakt ze aan via CREATE TABLE.