Click here to Skip to main content
15,905,322 members
Home / Discussions / Database
   

Database

 
GeneralRe: UpdateCommand with Parameter Pin
Arjan Einbu3-Aug-03 12:06
Arjan Einbu3-Aug-03 12:06 
GeneralRe: UpdateCommand with Parameter Pin
Anonymous3-Aug-03 12:21
Anonymous3-Aug-03 12:21 
GeneralRe: UpdateCommand with Parameter Pin
Anonymous3-Aug-03 13:33
Anonymous3-Aug-03 13:33 
QuestionHow to create "inheritance" relationship in Ms Access? Pin
ChiYung3-Aug-03 8:34
ChiYung3-Aug-03 8:34 
AnswerRe: How to create "inheritance" relationship in Ms Access? Pin
Ray Cassick3-Aug-03 9:40
Ray Cassick3-Aug-03 9:40 
GeneralRe: How to create "inheritance" relationship in Ms Access? Pin
ChiYung3-Aug-03 9:47
ChiYung3-Aug-03 9:47 
GeneralRe: How to create "inheritance" relationship in Ms Access? Pin
Ray Cassick3-Aug-03 9:55
Ray Cassick3-Aug-03 9:55 
GeneralRe: How to create "inheritance" relationship in Ms Access? Pin
ChiYung4-Aug-03 8:34
ChiYung4-Aug-03 8:34 
Thanks for your 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:
GeneralRe: How to create &quot;inheritance&quot; relationship in Ms Access? Pin
Ray Cassick4-Aug-03 18:01
Ray Cassick4-Aug-03 18:01 
GeneralDataBinding to a datagrid Pin
betengan3-Aug-03 6:05
betengan3-Aug-03 6:05 
GeneralRe: DataBinding to a datagrid Pin
dabuskol4-Aug-03 0:37
dabuskol4-Aug-03 0:37 
GeneralRe: DataBinding to a datagrid Pin
betengan4-Aug-03 5:35
betengan4-Aug-03 5:35 
Generalretrieved record Pin
dabuskol3-Aug-03 2:11
dabuskol3-Aug-03 2:11 
GeneralRe: retrieved record Pin
Rampas Tomas4-Aug-03 0:02
Rampas Tomas4-Aug-03 0:02 
GeneralRe: retrieved record Pin
dabuskol4-Aug-03 0:33
dabuskol4-Aug-03 0:33 
GeneralOLE DB Povider Dialog Pin
FAADI1-Aug-03 21:16
FAADI1-Aug-03 21:16 
GeneralRe: OLE DB Povider Dialog Pin
dabuskol4-Aug-03 0:41
dabuskol4-Aug-03 0:41 
GeneralDataSet doesn't deallocate used memory Pin
Rampas Tomas31-Jul-03 1:18
Rampas Tomas31-Jul-03 1:18 
GeneralRe: DataSet doesn't deallocate used memory Pin
Mike Dimmick31-Jul-03 1:35
Mike Dimmick31-Jul-03 1:35 
GeneralRe: DataSet doesn't deallocate used memory Pin
Rampas Tomas31-Jul-03 1:48
Rampas Tomas31-Jul-03 1:48 
GeneralQuestion about the increment Pin
Exceter30-Jul-03 18:09
Exceter30-Jul-03 18:09 
GeneralRe: Question about the increment Pin
Hesham Amin30-Jul-03 19:32
Hesham Amin30-Jul-03 19:32 
GeneralRe: Question about the increment Pin
Exceter30-Jul-03 23:46
Exceter30-Jul-03 23:46 
GeneralRe: Question about the increment Pin
Arjan Einbu31-Jul-03 1:13
Arjan Einbu31-Jul-03 1:13 
Generalproblem in adding records after deleting some records Pin
Wormhole523030-Jul-03 4:38
Wormhole523030-Jul-03 4:38 

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.