Results 1 to 3 of 3
  1. #1
    guitarbinge is offline Novice
    Windows XP Access 2003
    Join Date
    Nov 2010
    Posts
    1

    Smile A basic question about database design

    Hello,
    Im trying to design a database to track products and the the monthly orders and revenue brought in by those products.

    I have a 2 different table designs and am wondering which one would be better:
    1)
    Product Table
    --------------
    PK-ProductID
    ProductName


    ProductManufacturer

    Data Table
    ---------------
    PK-DataID
    FK-ProductID
    Date
    Orders
    Revenue





    2)
    Product Table
    --------------
    PK-ProductID
    ProductName
    ProductManufacturer

    Orders Table
    --------------
    OrderID
    FK-ProductID
    OrderDate
    Orders


    Revenue Table
    --------------
    RevenueID
    FK-ProductID
    RevenueDate
    Revenue



    So #1 seems better to me, but should orders and revenue be separated out just because they are two different things?
    The orderDate and RevenueDate will always be the same (one date, one order number and one revenue number per month)
    Or should orders and revenue get their own table? This seems like it would make more complicated queries down the road if I just wanted revenue information for example

    PS: I'm going to have several other data tables similar to revenue and orders that will have a many to 1 relationship with product, I just put these two as an example...also, I should note that there will be millions of records...

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    you don't need a seperate revenue table in your case.

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    not sure why you labeled one Data and the other Orders. But per Weekender you do not need a separate revenue table - so I guess that means the first is better.

    It may also be easier for you if you made the Data tables' ProductID field to be a 'look up' field type that points to the Product table.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Basic Question
    By Dalagrath in forum Forms
    Replies: 12
    Last Post: 10-31-2010, 05:36 AM
  2. New to reports - Basic Layout question
    By sesproul in forum Reports
    Replies: 1
    Last Post: 02-05-2010, 10:35 AM
  3. Really basic question
    By jimlaw in forum Forms
    Replies: 1
    Last Post: 07-27-2009, 07:20 AM
  4. Basic question, urgent help needed.
    By fishnu in forum Access
    Replies: 12
    Last Post: 03-18-2009, 01:39 PM
  5. Basic Question
    By chris11590 in forum Forms
    Replies: 0
    Last Post: 08-04-2008, 05:57 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums