Designing 1:1 and 1:m relationships in SQL Server
问题 In SQL Server 2008, how does one design a 1:1 and 1:m relationship? 回答1: Any relationship requires that the "parent" table (the one side) have a Primary (or unique) Key (PK), that uniquely identifies each row, and the "child" table (the other side) have a Foreign Key column or columns, that must be populated with values that are the same as some existing value[s] of the Primary Key in the parent table. If you want a one to many (1-M) relationship then the Foreign Key should be an ordinary