Instruction
Just as we expected! The update failed because the new value for the price column didn't meet the criterion.
How about trying something on your own?
Exercise
Let's leave the gaming community for now. Create a table called salary with the following columns:
employee_id– A unique integer number.monthly– A decimal of up to 10 digits, with 2 digits after the decimal point.annual– A decimal of up to 10 digits, with 2 digits after the decimal point.
Add the following CHECK constraint: The annual field must equal the monthly field times 12.
Stuck? Here's a hint!
Make sure that monthly * 12 = annual.



