Click here to Skip to main content
16,005,552 members
Home / Discussions / Database
   

Database

 
AnswerRe: Connecting to .DBF file???? Pin
charoldson11-Aug-03 8:31
charoldson11-Aug-03 8:31 
General.NET SQL Float rounding problem.. Pin
Member 964-Aug-03 15:32
Member 964-Aug-03 15:32 
GeneralRe: .NET SQL Float rounding problem.. Pin
Rein Hillmann6-Aug-03 22:00
Rein Hillmann6-Aug-03 22:00 
GeneralRe: .NET SQL Float rounding problem.. Pin
Mike Dimmick11-Aug-03 5:04
Mike Dimmick11-Aug-03 5:04 
GeneralLookup Data Selection With a DataGrid Pin
shoubin4-Aug-03 14:26
shoubin4-Aug-03 14:26 
GeneralLoading a DataSet with Data from Multiple Tables Pin
Milancie4-Aug-03 11:06
Milancie4-Aug-03 11:06 
GeneralRe: Loading a DataSet with Data from Multiple Tables Pin
Alexandru Savescu6-Aug-03 22:37
Alexandru Savescu6-Aug-03 22:37 
GeneralREPOST: How to create "inheritance" relationship in Ms Access? (Better problem definition) Pin
ChiYung4-Aug-03 8:52
ChiYung4-Aug-03 8:52 
I repost it because i'm afriad people will miss my "reply". I make it more clear about my problem here.

Thanks to Ray Cassick for his reply.

But i still have questions. I think i need to give you more information of my current problem.

HERE IS MY ORIGINAL DATABASE DESIGN:
For normal product, i have to store these attributes:
<code>- Prod_id
- Prod_title
- Prod_ISBN
- Prod_publisher
- Prod_cost
- Prod_retailprice
- Prod_description
- Category_id
- Prod_max (Max On Hand)
- Prod_min (Min On Hand)
- Shelf_id
- Status_id</code>

For consignment product, i have to store these attributes:
<code>- Cons_Prod_id
- Cons_Prod_description
- Cons_cost
- Cons_retailprice
- Cons_member_id [FK] (for the table that stores the info of the person who consign this item)</code>

For Invoice, i have:
<code>- Invoice_number
- Prod_id [FK]
- Cons_Prod_id [FK]
- Qty</code>


I think in the invoice table, it's not making sense to have both Prod_id and Cons_Prod_id in the table. Because if a product has Prod_id, it won't have Cons_Prod_id or vice versa. In this case, there will be wasting memory space.

So I decided to modify it and use inherit relationship in order to use ONE Prod_id ONLY in the invoice table.

However, if i use your suggestion, it just solves the problem on how to distinguish the normal and consignment product.

I still need a table to store those extra information such as Cons_member_id because some information won't exist in both products. (e.g. Consignment table does not need Prod_max and Prod_min, but need cons_member_id)

Then i stuck here now...OMG | :OMG:

I very appreciate your help to solve my problem!!
Thanks alot!!!!! Laugh | :laugh:
GeneralCursor Error Pin
Anonymous4-Aug-03 7:22
Anonymous4-Aug-03 7:22 
QuestionClose the connection? Pin
Anonymous4-Aug-03 2:58
Anonymous4-Aug-03 2:58 
AnswerRe: Close the connection? Pin
Rob Graham4-Aug-03 4:02
Rob Graham4-Aug-03 4:02 
GeneralRe: Close the connection? Pin
Anonymous4-Aug-03 5:10
Anonymous4-Aug-03 5:10 
AnswerRe: Close the connection? Pin
Rocky Moore4-Aug-03 4:02
Rocky Moore4-Aug-03 4:02 
GeneralDynamic where Clause Pin
dabuskol4-Aug-03 0:46
dabuskol4-Aug-03 0:46 
GeneralRe: Dynamic where Clause Pin
Rocky Moore4-Aug-03 4:35
Rocky Moore4-Aug-03 4:35 
GeneralRe: Dynamic where Clause Pin
Peet Schultz5-Aug-03 5:57
Peet Schultz5-Aug-03 5:57 
GeneralRe: Dynamic where Clause Pin
dabuskol5-Aug-03 18:27
dabuskol5-Aug-03 18:27 
Generalmozooo Pin
Anonymous3-Aug-03 22:36
Anonymous3-Aug-03 22:36 
GeneralRe: mozooo Pin
Anonymous3-Aug-03 22:38
Anonymous3-Aug-03 22:38 
GeneraloledbCommand Pin
betengan3-Aug-03 15:13
betengan3-Aug-03 15:13 
GeneralRe: oledbCommand Pin
neda3-Aug-03 22:33
neda3-Aug-03 22:33 
GeneralRe: oledbCommand Pin
K4reem5-Aug-03 3:59
K4reem5-Aug-03 3:59 
GeneralUpdateCommand with Parameter Pin
Anonymous3-Aug-03 8:42
Anonymous3-Aug-03 8:42 
GeneralRe: UpdateCommand with Parameter Pin
ChiYung3-Aug-03 9:13
ChiYung3-Aug-03 9:13 
GeneralRe: UpdateCommand with Parameter Pin
Arjan Einbu3-Aug-03 12:06
Arjan Einbu3-Aug-03 12:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.