If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Two PK in a single table
Is it possible to have two Primary Key in a single Table?
Why do I ask this question? After many misdesigns, I understand that it is a mistake to join one PK of a single table to two different tables. This design format is totally wrong and never works (if I am not right with this conclusion, please correct me). As a solution, I am thinking to put to PK in a single table so to use each, for separate join. My DB is as follows: This DB is aimed for the procedure of getting a ProformaInvoice(PI) from a seller, opening a Letter of Credit (LC) in a bank and shipment of commodities. ProformaInvoiceTbl PIID (PK) SellerID (a foreign key) PInumber (set as PK) .... (other fields) CommodityTbl CommodityID (PK) PIID (FK from ProformaInvoiceTbl) .... (other fields) BudgetAssignerTbl AssignerID (PK) PInumber (FK from ProformaInvoiceTbl) .... (other fields) TIA, Rasoul Khoshravan Azar |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Design help, please | SillySally | Using Forms | 27 | March 6th, 2005 04:11 AM |
unable to repair inobox | Sudheer Mumbai | General Discussion | 1 | February 20th, 2005 11:55 AM |
Update Tables using forms | achett | Using Forms | 5 | January 28th, 2005 12:25 AM |
Table Wizard Does Not Set Relationship if Foreign Key and Primary Key Name Do Not Match Exactly in Case. | HDW | Database Design | 3 | October 16th, 2004 03:42 AM |
Complicated Databse w/many relationships | Søren | Database Design | 7 | July 13th, 2004 05:41 AM |