Results 1 to 7 of 7
  1. #1
    Western_Neil is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2016
    Location
    Calgary, AB
    Posts
    147

    Question on stars and repetitive table

    Hello
    I’m lost in the forest of data and can’t see the order for the trees. I have been playing with the data to setup importing, which is causing changes to my proposed data tree. (All VERY GOOD, Thanks Orange and Neil for the ideas, readings and the thoughts).



    A typical data fragment is like “A” Company, 3rd Battalion, 502nd Parachute Infantry Regiment, was in Bastogne Belgium on Dec 1944. This statement has Unit, Title (“A”), Size (Company), Command (3rd Battalion), Family (502nd Regiment), Branch (inferred Infantry), Type (Parachute Infantry). This units’ Lineage is unstated but it was mobilized as infantry and converted in 1942. This whole fragment can also be shown as a graphic.

    This data wants to break down (as I understand normalization) into following statement, a Unit has a Title, Lineage, Family, Command, Branch, Type, Size, and is in a Place. All of these things occurred because an Orders had been issued. An Order has a Working date, Date Range, Raw Date, Action, and if known the Authority, Effective date and Issued date. From this I’m getting a triple star data tree (Unit, Title, and Order) with repetitive table structure (UnitID, TitleID, OrderID, Note, and type filed or two).

    So my question is multiple stars and repetitive table structures normal for a good database design?

    Tree, data and order sample can be posted latter

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    not sure what you mean by multiple stars - are you referring to a multi field primary key? If so, I would suggest have a separate autonumber primary key and a multi field index on your three fields to prevent duplicates. To do this, in the table design window, click on indexes in the ribbon, enter an index name and select unique at the bottom, then the three field names and change sort order if required - like this

    Click image for larger version. 

Name:	Capture.JPG 
Views:	12 
Size:	29.4 KB 
ID:	25226

    Also not clear about repetitive table structures. If you mean you have a number of different tables for lookup purposes which all have the same structure of a PK and a description, but one relates to unit, another to place etc that is OK. It is also OK to combine them into one table with an extra 'type' column which indicates what was previously the table name. The first is easier to manage, the second more flexible if there is the likelihood of additional 'types'.

  3. #3
    Western_Neil is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2016
    Location
    Calgary, AB
    Posts
    147
    By star I mean a table joined to many tables, so when drawen create a star

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    Ah OK - no a star is fine, but of course subject to the requirements the db needs to fulfil. From what you are saying, your Orders table is the centre of that star with links to many other tables to effectively populate a sentence/paragraph

  5. #5
    Western_Neil is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2016
    Location
    Calgary, AB
    Posts
    147
    Correct, with title and unit doing the same thing around them selfs. It makes for a messy diagram.

    Combining the other tables into a super table has always been wrong to me, but that would clean up the messy diagram.

    Thoughts

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    but that would clean up the messy diagram.
    not really - to show in the relationships you would bring the table in under different aliases - access will append _1, _2 to the table name - because you can only show one relationship between two tables

    Click image for larger version. 

Name:	Capture.JPG 
Views:	8 
Size:	23.7 KB 
ID:	25239

    this shows two tables - and myTable being there twice with the second iteration suffixed with _1

  7. #7
    Western_Neil is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Jul 2016
    Location
    Calgary, AB
    Posts
    147
    Okay, Thanks. Use aliases tables to clean it up. I just wish you could force access relationship lines into straight lines with 90^ Conners.

    Thanks for confirming that this sounds correct.
    Last edited by Western_Neil; 07-21-2016 at 04:08 PM.

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

Similar Threads

  1. Repetitive Subcomponent
    By Western_Neil in forum Database Design
    Replies: 3
    Last Post: 07-17-2016, 03:09 PM
  2. Replies: 5
    Last Post: 06-23-2014, 07:32 PM
  3. Mass Import Repetitive Txt Files
    By Todd84 in forum Import/Export Data
    Replies: 4
    Last Post: 01-03-2014, 12:04 AM
  4. Form Issue (repetitive fields)
    By netchie in forum Access
    Replies: 2
    Last Post: 08-15-2011, 02:39 PM
  5. Repetitive Import Problem.
    By jasonbarnes in forum Import/Export Data
    Replies: 5
    Last Post: 02-18-2011, 11:09 AM

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