Filemaker Pro 9 (58) Flashcards
- 3.14.2
1. What are the PROPER steps for entering FIELDS in a table?
a. Enter PRIMARY KEYS on ALL TABLES
b. Enter FOREIGN KEYS on ALL TABLES
c. Enter all the OTHER FIELDS on ALL TABLES.
This is not the FASTEST, EASIEST method, but an ORGANIZED APPROACH PAYS OFF.
- Adding the FOREIGN KEYS requires a little more thought than the PRIMARY KEYS, but not much. You start by:
looking at the ENTITY RELATIONSHIP DIAGRAM, the CROW’S FEET will show you where the FOREIGN KEYS go.
- Remember that a FOREIGN KEY is just:
a PRIMARY KEY from another table.
- Each table with a CROW’S FOOT stuck to it needs a FOREIGN KEY inside it. WHAT SHOULD THE FIELD BE CALLED?
Simple: find the other end of the line, that’s the ENTITY THE FOREIGN KEY POINTS TO, and name the FIELD APPROPRIATELY. For example, the LINE ITEMS TABLE needs a field called INVOICE ID.
- Why do FOREIGN KEY FIELDS also need to be UNIQUE?
They DO NOT. They’re just plain TEXT FIELDS. NO NEED TO AUTO ENTER SERIAL NUMBERS in these fields, and NO NEED to turn on the PROHIBIT MODIFICATION DURING DATA ENTRY option.
- You tell Filemaker how the tables in your database fit together (ARE LINKED) by:
MATCHING UP KEYS
- In writing, how do you denote what TABLE a FIELD belongs in?
Use the DOUBLE COLON ( :: ). A ‘JOB ID’ FOREIGN KEY FIELD in the EXPENSES TABLE would be written as: EXPENSES::JOB ID
- FileMaker figures out by itself which lines need CROW’S FEET. It does this by ASSUMING EVERY END OF EVERY LINE NEEDS A CROW’S FOOT UNLESS:
a. The field used in the relationship is a SERIAL NUMBER
b. The field used in the relationship has the UNIQUE VALIDATION TURNED ON.