A money balance that cannot go negative
Design a ledger table for money balances: the balance is a number with two decimals, required, defaults to 0, and cannot be negative. Columns: id — primary key; balance.
Just CREATE/ALTER/DROP — no trailing SELECT needed.
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inNo starting schema
This task starts with no tables — you'll create them via CREATE TABLE.