Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2014
    Posts
    8

    Question is this possible (about database normalization)?

    I'd like to make a new table named Purchasing table.
    Is it ok with this? which x -> y (x=primary key)
    Click image for larger version. 

Name:	norm_1.png 
Views:	21 
Size:	5.8 KB 
ID:	16336
    or is it better with this version (dividing into two tables)?

    Click image for larger version. 

Name:	norm_2.png 
Views:	21 
Size:	7.2 KB 
ID:	16337
    and another question is can I not use primary key?


    what is benefit of primary key?

    *Note:
    The arrow means dependency, except the arrow between PONo, ProductCode -> Qty
    If anyone could help, I would be greteful

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Is this a class assignment?

    If you want to allow multiple products with each purchase, use two tables.

    The main benefit of primary key is as a link to related records. By saving just the primary key value as a foreign key, it is not necessary to duplicate data. The one-table structure would require repeating the PONo, Date, EmpID, SupplierID for every product associated with the purchase.

    A primary key can be an autonumber field or a custom unique identifier such as PONo. There are pros and cons to each.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. database normalization
    By joe235 in forum Database Design
    Replies: 1
    Last Post: 05-21-2013, 08:57 PM
  2. Help with normalization for my first database
    By basstwo in forum Database Design
    Replies: 8
    Last Post: 10-02-2012, 10:25 AM
  3. Database normalization need help
    By Johev in forum Database Design
    Replies: 9
    Last Post: 03-08-2012, 09:02 AM
  4. New Educational Database - Structure & Normalization
    By alpinegroove in forum Database Design
    Replies: 4
    Last Post: 01-28-2011, 03:36 PM
  5. Normalization
    By U810190 in forum Access
    Replies: 1
    Last Post: 03-30-2010, 04:55 PM

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