My RelationshipCodeLookup
table uses as a foreign key the primary key field of the AgentTransmission
table. There can be only 5 records in the RelationshipCodeLookup
table with the same AgentTransmission
primary key.
Is it possible to create a composite key on the RelationshipCodeLookup
which includes the foreign key from AgentTransmission
and a separate int
field that only goes up to 5? For instance, a complete group of records for one agent would be:
FK CK
132 1
132 2
132 3
132 4
132 5
If another record was attempted to be added with the FK
of 132
, some kind of constraint on the table would be violated and the record unable to be added.
Is this possible?