A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Two PK in a single table



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 4th, 2005, 09:21 AM
Rasoul Khoshravan Azar
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 04:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.