Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Primary keys - the basics
Single-column primary keys
Multicolumn primary keys
15. Uniqueness with multicolumn primary keys - continued
Auto-increment columns and sequences
Revision

Instruction

Nice! We have successfully inserted the new row because the combination title + year was unique.

What happens if the combination of values is not unique? Let's find out.

Exercise

Try to add a new movie where the combination title + year is the same as for another row. You can, for instance, try to add yet another movie The Kid produced in 2016.