Computer Science, asked by parmaranjli99, 1 month ago

why is it mandatory to have a unique fields to each record in table​

Answers

Answered by barkhasingh1840
0

Answer:

22

Down vote

Yes, for example in case of a mapping table representing an N:M association between two tables. In its simplest form, it contains only two foreign keys, and these form its compound key, so it needs no separate ID column. In fact, adding an ID to such a table (without a uniqueness constraint, as pointed out by @Jeff) would allow one to add multiple associations between the same two rows, which is usually not desired.

Explanation:

hope it helps

Answered by Mbappe007
0

Answer:

Yes, for example in case of a mapping table representing an N:M association between two tables. In its simplest form, it contains only two foreign keys, and these form its compound key, so it needs no separate ID column. In fact, adding an ID to such a table (without a uniqueness constraint, as pointed out by @Jeff) would allow one to add multiple associations between the same two rows, which is usually not desired.

Explanation:

Similar questions