Results 1 to 40 of 50

Thread: Inventory System Table Design

Threaded View

  1. #11
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,748

    Re: Inventory System Table Design

    Ok - so if I understand your reply you are about to change your tables

    tblStockMasterFile:
    ProductId
    ProductName
    Unit - since this is the same for all transactions - it belongs here

    tblStockTransFile:
    ProductId
    EntryDate - let's put this field up here - it's the second segment of the pri key
    Quantity - positive for in-stock, negative for out-stock
    ClientCode
    already done with it.

    Now for questions...

    PurchasePrice - it can be argued that this belongs in some price schedule table - but let's deal with that later
    The purchaseprice of the same item may differ from time to time.

    ReorderPoint - seems to belong in tblStockMasterFile - this has nothing to do with an order being placed by a client - it's related to the product itself - just like the Unit - right

    DateOut is redundant - the ENTRYDATE field is the only field for date needed in this table.?
    Ok.. done...

    In post #2 I discussed having a separate table for the ORDER to support the CLIENT associated with out-going-stock. You seem to want to have a single table for both inventory and order data - that's ok with me.

    You might want to consider having a REASON code as I suggested in post #2 - so you can determine more easily the reason for a row being in the tblStockTransFile.
    fine with me.

    Please post back questions on any of these issues.

    If you agree then please re-design your tables and post back a new image of the relationships.
    below is my new database.
    Attached Images Attached Images  
    Last edited by si_the_geek; Sep 3rd, 2007 at 10:57 AM. Reason: corrected quote tags
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width