+ 4

When populating a table how does one add a foreign key? Is it done just by adding the foreign key id? Thanks

10th Dec 2016, 11:00 PM
Zainab Amor
Zainab Amor - avatar
3 odpowiedzi
0
مرحبا
6th Jan 2017, 6:41 PM
kathem
0
A foreign key comes from a fully normalized database structure. That means the value in one table resolves to a primary key in another table. For example, in a retail transaction, you go to the store and buy some goods. The receipt is a collection of those goods and has its own receipt number. The foreign keys on the receipt would be the individual products purchased in the transaction.
10th Jan 2017, 12:43 AM
Alphonse Derus
Alphonse Derus - avatar
- 1
ya
12th Dec 2016, 9:43 AM
manish rawat
manish rawat - avatar