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.
Μόνο CREATE/ALTER/DROP — δεν χρειάζεται τελικό SELECT.
Συνδεθείτε για να δείτε το ιστορικό υποβολών
ΣύνδεσηΣυνδεθείτε για να χρησιμοποιήσετε τον AI Mentor
ΣύνδεσηΧωρίς αρχικό σχήμα
Αυτή η άσκηση ξεκινά χωρίς πίνακες — θα τους δημιουργήσετε μέσω CREATE TABLE.