Create accounts with account_id INTEGER PRIMARY KEY, status VARCHAR NOT NULL (default 'active', only 'active' or 'closed') and closed_on DATE. closed_on must be filled if and only if the status is 'closed'.
This question starts with an empty database.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.