Instruction
Here's the exercise for you!
Exercise
A traveler asked us to help him modify the table where he keeps basic information about all his trips. The table has the following definition:
CREATE TABLE trip ( id integer PRIMARY KEY, destination varchar(64), total_budget decimal(6, 2), budget_souvenirs decimal(6, 2), nights integer CHECK (nights > 0) );
Your task is to:
- Add a constraint to ensure that
budget_souvenirsis less thantotal_budget. - Remove the constraint from the
nightscolumn. (He could take a day trip somewhere, with no overnight stays.)



