Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
UNIQUE
8. UNIQUE on multiple columns - Playing around
NOT NULL
CHECK
DEFAULT
Summary

Instruction

Excellent. Now we have the right table to do a little testing. Take a look at the exercise.

Exercise

As we mentioned previously, each pair of values name + genre must now be unique. Take your time and test that. Add a row where both values will be different, a row where one of them will be unique and a row where the whole pair will be the same as in another row. See what happens each time.