Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Self Join?? and How to

Featured Replies

I have a table that contains case numbers. In my job, each case number could be related to another case number.

Example: 08-123456 has the same suspect as 09-555666...so it needs to be noted that they are related.

So I wanted a portal with a dropdown list on the main case number layout that I could simply pick one or ten other case numbers that are related. All the case numbers are in the table so they are all available to link to. Then I would simply use a button to go to the related case number.

Any suggestions...I have searched the forums and can't figure out how to do this.

I'm not completely sure based on your description, but the scenario does not suggest a self join; I think you'd be better off thinking about the different entities you are trying to track, and creating tables to represent them.

For example, you mention cases and suspects. Perhaps you would want to track suspects as well? If so, then create a separate table for them. Then, to link suspects to cases, you'd create a join table, where you would at a minimum store the CaseID and the SuspectID, which would allow you to join those two entities together. Then, you can always use the Power of The Database to see all the cases related to a suspect, all the suspects related to a case, and how many slices of cold cuts make the ideal sandwich.

Just kidding on the last one.

HTH,

David

  • Author

Tsquare,

Thanks for the quick response. What you describe is currently being done in the database. I also just need a simple view of all related cases within the case number layout. There are 15 tables as of now and I was hoping to have a simple dropdown list to select related cases. Sometimes the suspects are not the same, but the method of operation is, etc... it gets into a whole big thing. So any other help would be great. Now I'm off to make a sandwich :)

  • 9 months later...
  • Author

Back to looking at this problem. I've attached an example to what I need. Seems like a simple relationship but not working.

When I pick a case number in the portal on one record, I need it to show up on the related record's portal as well.

test.zip

See if this helps:

http://fmforums.com/forum/showtopic.php?tid/171427/

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.