-14

How can I create a Table in SQL Server that has a Primary Key and a Foreign Key, but the Primary Key data should be repeated?

For example:

PK   FK
1    100
2    100
1    200
3    100
4    200
4    100
4    300
Juan Carlos Oropeza
  • 45,789
  • 11
  • 74
  • 113
bhanu prakash
  • 27
  • 1
  • 6

1 Answers1

4

A primary key is unique by definition, you can't have repeated values for your primary key column(s).

Alex
  • 20,287
  • 10
  • 59
  • 69