This is my first time truly working with composite keys. I have a record that consists of three foreign key columns. The combination of these three keys must be unique. If a duplicate record is inserted, a constrain error should be thrown just as if it were a unique, single-field, primary key.
This is for Teradata database.
You can enforce this via a unique secondary index on the table.
You could also consider adding a
UNIQUE CONSTRAINTon the table as well if the inclusion of theINDEXwould not benefit as an alternative access method.Teradata also supports the use of Primary Key constraints if you are planning to enforce RI in your environment.