Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary key
Message
De
19/03/2003 09:47:40
 
 
À
19/03/2003 08:34:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00766466
Message ID:
00767528
Vues:
22
Hi,
Hmm.. Is it the way?

I have item, outlet, outletitem and stockin, stockindetails table.
Table: item
Field: ItemID (PK), ItemCode, ItemName ....

Table: Outlet
Field: OutletID (PK), OutletCode, OutletDesc 

Table: OutletItem
Field: OutletItemID (PK), OutletID, ItemID, CPU, PPU ...

Table: StockIn
Field: StockInID, InvoiceNo, InvDate, ....

Table: StockinDetails
Field: StockInID, StockInQty, StockInCPU ....
In my app, I allow user to stockin for multiple outlet in ONE sotckin transaction. Then, what is the foreign key for the item+outlet of stockindetails table? Should I just use OutletItemID or composite key or.. ??

BTW, is it the way using auto generated value as PK?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform