#1132

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.

Pelkkä CREATE/ALTER/DROP — lopussa ei tarvita SELECT-lausetta.

Kyselysi tulos näkyy tässä

Ei aloitusskeemaa

Tämä tehtävä alkaa ilman tauluja — luot ne CREATE TABLE -komennolla.