Jump to content
Server Maintenance This Week. ×

Help with relation scheme


This topic is 2875 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hi, I got stuck with building a proper relationship scheme.

I'm making an database with several tables. One table contains information on archaeological features (key field Feature ID), another contains data on documentation. One document may contain information on several features, for this reason in documentation table I've created several fields (Feature ID 1, Feature ID 2, etc). The two tables are related through Feature ID=Feature ID 1; in the second table I've made a self-relation between all Feature ID fields.

In the Features layout I've made a portal displaying related records from Documentation table. Unfortunately it only displays related to the first field (Feature ID 1), while other fields (Feature ID 2, etc) seem remain unrelated. 

What do I do wrong? Thank you!

Link to comment
Share on other sites

Well, then you have a many-to-many relationship - and the proper way to resolve it is through a join table. See a basic demo of a join table here:
http://fmforums.com/topic/50942-portal-grouping-problem/?do=findComment&comment=239210

Note:
In some cases, you may use a multi-key field in one of the tables instead of a join table. For example, you could use a checkbox field in the Documents table to tick off all the features that the document describes. But there are severe limitations to this method: mainly, you cannot record any attributes of a specific join - for example, the page on which this feature is described in this document. You also won't be able to produce a proper report of documents by feature, or features by document.

Link to comment
Share on other sites

This topic is 2875 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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