Results 1 to 10 of 10
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    Design database - is it the good approach ?

    Hi,

    I have relanships something like that:

    Click image for larger version. 

Name:	aproach.png 
Views:	25 
Size:	16.4 KB 
ID:	30513

    Is it the good approach when you are creating the database ?

    I have features and fields (for example dates) which will be characteristic only for one document (tbl_pelnomocnictwa mirrors one document).



    I could place these separately fields in separately tables within one summary table (tbl_Pelnomocnictwa) but there is a lot of fields so i changed it for 3 tables in order to delete fields from my summary table () and to not do my summary table very big.

    What do you think?
    Better do only one 1to1 relanthip or it doesnt matter what is their number in relational database?

    Thank you for your tips,
    Best Wishes,
    Jacek Antek

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    I also use some 1:1 tables for some cases. It works.

  3. #3
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    But you have to often build form with inconsistent data type in order to input data...

    Thank you!

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Not sure what you mean by "summary" table. Do not use tables to store calculated fields, have standard queries for this instead.

  5. #5
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    IMHO, it is a bad idea, unless you are doing something like keeping salaries from being see by everyone.

    If 1 to 1, then the fields should be in the same table.

    there is a lot of fields
    How many are "a lot of fields"???

  6. #6
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you Guys!

    In tbl_Pelnomocnictwa as you can see there is about 15 fields.

    Summary table is 1 to 1 relationship table where user input new ticket.
    One record = one new ticket

    Best wishes,
    Jacek Antek

  7. #7
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Sometimes i think that it is no inevitable to avoid 1to1 relationshiop,

    please look below:

    Click image for larger version. 

Name:	Bez tytu?u.jpg 
Views:	17 
Size:	108.8 KB 
ID:	30537

    tbl_Spolki is automatically updated from Excel file via macro.
    So i can not add foreign key here and make this table as many relationship.

    So only what i can do it is create foreing key in table tbl_Pel_osoba so 1to1 relationship is inevitable here.

    Best wishes,
    Jacek Antek

  8. #8
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    up,

    Jacek Antek

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I also have one db where 1-to-1 related tables were preferred.

    It is a balancing act between normalization and ease of data entry/edit. "Normalize until it hurts, denormalize until it works."

    However, I am not convinced that tbl_Pelnomocnictwa and tbl_Daty_wniosku really need to be separate.
    Last edited by June7; 10-02-2017 at 10:47 AM.
    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.

  10. #10
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you June7,

    I think that is not necessary also but is looking prettier

    Best Wishes,
    Jacek Antek

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

Similar Threads

  1. Replies: 5
    Last Post: 03-16-2015, 10:17 PM
  2. Want to know if this looks like a good database design
    By tmcrouse in forum Sample Databases
    Replies: 7
    Last Post: 09-28-2014, 08:46 PM
  3. Replies: 4
    Last Post: 01-30-2014, 12:18 PM
  4. Is this a good database design?
    By Someday in forum Database Design
    Replies: 4
    Last Post: 07-22-2012, 06:50 PM
  5. Replies: 6
    Last Post: 08-04-2010, 01:16 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