Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6606609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:24:51+00:00 2026-05-25T19:24:51+00:00

Hi I need be able to link related applications and am trying to work

  • 0

Hi I need be able to link related applications and am trying to work out the best practice table structure for saving, updating and deleting.

I have the following table:

APPLICATION{ApplicationId, Name, Description}

I need to be able to say Application 1 is linked to 2 and 3. Therefore if you open application 2 you’d see that it is linked to application 1 and 3. Then application 3 is linked to 1 and 2.

What is the best table structure for a linked table?

EDIT

My main query is will I need a record for each join ie for applications 1, 2 and 3 would I need 6 records? 1->2, 1->3, 2->1, 2->3, 3->1, 3->2 ?? If not what is the best query to return all linked apps for a given id?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:24:52+00:00Added an answer on May 25, 2026 at 7:24 pm
    application_association
    -------------------------
    application_1_id
    application_2_id
    relationship_type
    begin_dt
    end_dt
    

    use relationship_type to specify how the applications are related, and use the dates to specify when that relationship was valid

    edit:

    maybe there is a collective misinterpretation of your use of the word ‘linked’.

    If you instead mean ‘grouped’ then you might consider a structure like the following:

    group
    ------------------
    group_id
    name
    
    application_group
    -------------------
    application_id
    group_id
    

    here you can just place applications into the same ‘group’ and then query them all back when they are in the same group.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to be able to tell if a link (URL) points to an
I need to be able to strip out a condition in a string, here
I need to be able to map out in coordinates real world cities and
I need to be able to construct a link in the Action on the
This is quite difficult to phrase, but I need to be able to link
I need to be able to link for example Customers to either multiple Users
So I have been trying to figure out the best way to go about
Users of the website need to able to store images in their area ,
Need to be able to pull Magento products into an external template. Need to
I need to be able to access a list throughout my Rails project. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.