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.
looking at the ENTITY RELATIONSHIP DIAGRAM, the CROW’S FEET will show you where the FOREIGN KEYS go.
a PRIMARY KEY from another table.
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.
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.
MATCHING UP KEYS
Use the DOUBLE COLON ( :: ). A ‘JOB ID’ FOREIGN KEY FIELD in the EXPENSES TABLE would be written as: EXPENSES::JOB ID
a. The field used in the relationship is a SERIAL NUMBER
b. The field used in the relationship has the UNIQUE VALIDATION TURNED ON.