![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I wanted the expert opinion out there in the use of foreign keys as primary keys in a table. I am not very good at explaining this concept, but I am going to try - Let us say you have a parent/master table( Ex: purchase order) that is generating number (primary key for the main table)using the seed and increment specified. We need all the records of this table to be in sequential order - i.e. we need all purchase orders to be in sequence. Now there are two different types purchase orders different enough to have entity/tables of their own. So what are the downsides of using the primary key generated in the main table which would normally be a foreign key to the child table, as the actual primary key in the child tables. Thanks KR |
#3
| |||
| |||
|
|
Let us say you have a parent/master table( Ex: purchase order) that is generating number (primary key for the main table)using the seed and increment specified. We need all the records of this table to be in sequential order - i.e. we need all purchase orders to be in sequence. |
|
Now there are two different types purchase orders different enough to have entity/tables of their own. So what are the downsides of using the primary key generated in the main table which would normally be a foreign key to the child table, as the actual primary key in the child tables. |
#4
| |||
| |||
|
|
Hi All, I wanted the expert opinion out there in the use of foreign keys as primary keys in a table. I am not very good at explaining this concept, but I am going to try - Let us say you have a parent/master table( Ex: purchase order) that is generating number (primary key for the main table)using the seed and increment specified. We need all the records of this table to be in sequential order - i.e. we need all purchase orders to be in sequence. Now there are two different types purchase orders different enough to have entity/tables of their own. So what are the downsides of using the primary key generated in the main table which would normally be a foreign key to the child table, as the actual primary key in the child tables. Thanks KR |
#5
| |||
| |||
|
|
We need all the records [sic] of this table to be in sequential order |
|
i.e. we need all purchase orders to be in sequence. |
|
there are two different types purchase orders different enough to have entity/tables of their own. So what are the downsides of using the primary key generated in the main table [sic: referenced table] which would normally be a foreign key to the child table [sic: referencing table], as the actual primary key in the child tables [sic]. |
![]() |
| Thread Tools | |
| Display Modes | |
| |