I was wondering, is there any possibility to create a table without a primary key, but with two foreign keys, where the foreign keys pairs are always different? For example,
You can create a primary key on two columns: click on both columns in designer view > click on pk
Or, you could add a unique constraint on 2 columns:
ALTER TABLE [dbo].[RepresentativeData]
add CONSTRAINT [UK_Representative_repRecID_AppID] unique (repRecID,AppId)
go
I prefer the compound primary key, because it enforces that the value does exist in the other tables.