Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2008
    Location
    cleveland
    Posts
    2

    design using relationship...

    I have a small sheet music publishing company and I’m trying to create a system to do the following:
    1.Product info (I’ve created a table holding this info)
    2.Customer info (I’ve created a table holding this info)
    3.Keep track of product purchases
    Who bought it, when, for how much
    4.Calculate the total sales of each product item



    DB stuff is totally new to me and I’m not sure how to connect the info from 1 & 2 into 3 – or the best overall design if the DB for that matter…Obviously, I’d like to not reenter customer info for each item they buy and I’d like to be able to query things like who has bought a certain item and when.

    I have learned some basics on ‘relationships’ and used that for common fields in my Products table
    Thanks for any guidance….

  2. #2
    Join Date
    Oct 2008
    Location
    cleveland
    Posts
    2
    i've created a flowchart of sorts to outline the charts that I think are needed. As this is my first db, any comments on what you see would be appreciated...ie. how to uses 'relationships' more, other things that I should read up on...don't really know what I'm doing
    Last edited by dsnyder; 10-21-2008 at 01:39 PM. Reason: changed image

  3. #3
    Matrix's Avatar
    Matrix is offline Admin
    Windows 10 Access 2010 64bit
    Join Date
    Jan 2005
    Posts
    519
    The 'Orders' table would be like this:

    Code:
    OrderID
    CustomerID
    SheetMusicID
    PurchaseDetails
    PurchasePrice
    ShippingPrice
    ... 
    So the three tables 'SheetMusic', 'Customer' and 'Orders' are connected. You can make different queries on 'Orders'. e.g.:
    List all orders of a title:
    Code:
    select a.* from Orders aSheetMusic b where a.SheetMusicID=b.SheetMusicID and b.Title='my favorite song' 
    (Just a fake SQL)

    Just some thought on database design, I have no Access coding experience, although I worked a lot on other databases.

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

Similar Threads

  1. newbie needs design help
    By ashiers in forum Database Design
    Replies: 0
    Last Post: 09-13-2008, 07:05 PM
  2. Design help
    By marix in forum Database Design
    Replies: 1
    Last Post: 04-18-2007, 07:54 AM
  3. Many to Many relationship
    By Marlie in forum Database Design
    Replies: 6
    Last Post: 08-18-2006, 01:49 PM
  4. Design for productivity
    By code_warrior in forum Database Design
    Replies: 2
    Last Post: 06-18-2006, 08:05 AM
  5. Challenging design
    By Zoroxeus in forum Database Design
    Replies: 0
    Last Post: 01-30-2006, 11:27 PM

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