User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
Working with related files
8-15
Creating many-to-many relationships
In a one-to-one relationship, one record in the master file is related
to one record in the related file. In a one-to-many relationship, one
record in the master file is related to more than one record in the
related file. In FileMaker Pro, you can also create a many-to-many
relationship, in which more than one record in one database file is
related to more than one record in another database file, and more
than one record in that file is related to more than one record in the
first file. (In the example in the previous section, the Invoices file and
the Products file have a many-to-many correspondence, because a
particular invoice may contain many products, and a particular
product may appear on many invoices.)
To create a many-to-many relationship between database files, create
a separate join file (or join table), which is related to the other two
files. A join file allows common data to be shared between the two
files.
Suppose you have two files, Employees and Classes. You want to
know which employees attend which training classes, and which
classes are attended by which employees. Before you create the join
file and define the relationships, the database files look like this:
After you create a join file and define the relationships for the many-
to-many correspondence, the database files look like this:
For more information about creating many-to-many relationships
between database files, choose Help menu > Contents and Index, click
the Index tab, and type many-to-many correspondence.
Employee ID
Name
Department
Employees
Class ID
Title
Date
Classes
Employee ID
Name
Department
Employees
Class ID
Title
Date
Classes
Employee ID
Class ID
Employees In
E
mp
Cl
ass
(J
o
i
n
fil
e
)
Classes In
Title Name
Calculated fields
Relationships
Relationships