Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Final Quiz
5. Question 4
Summary

Instruction

Very well done! There's just one more exercise ...

Exercise

You are given a simple table named invoice with the following definition:

CREATE TABLE invoice (
  id integer PRIMARY KEY,
  customer_name varchar(32) NOT NULL,
  total_amount decimal(8, 2),
  item_count integer
);

The table needs a few changes:

  1. Remove the NOT NULL constraint from the customer_name column.
  2. Add a default value of 0.00 to the total_amount column.
  3. Add a condition to the item_count column: it should be greater than 0.