#1041

One Active Subscription

Create the user_subscription table for user subscriptions. It needs id as an int primary key, required user_id as int, and required status as text; the database must prevent two rows with status = 'active' for the same user_id.

Solo CREATE/ALTER/DROP — non serve un SELECT finale.

Il risultato della tua query apparirà qui

Nessuno schema iniziale

Questo esercizio parte senza tabelle — le creerai tu tramite CREATE TABLE.