A contribution by Axel Drefahl, axeleratio.com, September 17, 2016.
This post continues my preceding OpenOffice™ Base (ooBase) lessons:
From now on you cannot put a value into a CesbronList.MinClassID cell which does not already appear in the MineralClasses.ID column: each mineral belongs to exactly one given class (within our design). If you enter a wrong value, you will receive a message stating an “Integrity constraint violation” error. Therefore, some experts recommend to implement relationships before starting to enter any data into the tables. But it is completely up to you in which order you proceed.
This post continues my preceding OpenOffice™ Base (ooBase) lessons:
- Exploring OpenOffice™ Base: an example involving rare-earth mineral data
- Structuring rare-earth mineral data in an OpenOffice™ Base table
- Modifying the column layout of an existing OpenOffice™ Base table
- If not yet done, open RareEarthMinerals_2tables.odb and go to Tools > Relationships... to open the Add Tables dialog.
- Add both tables, MineralClasses and CesbronList, into the empty space of the Relation Design window; then Close AddTables.
- Put your mouse pointer on the MineralClasses.ID field, keep the left mouse button down, move the pointer over to CesbronList.MinClassID and release the mouse button. You should now see a 1-to-n line connecting the selected fields.
- Go to File > Save to conclude the relationship creation before closing the Relation Design window.
1-to-n connection between two tables |
From now on you cannot put a value into a CesbronList.MinClassID cell which does not already appear in the MineralClasses.ID column: each mineral belongs to exactly one given class (within our design). If you enter a wrong value, you will receive a message stating an “Integrity constraint violation” error. Therefore, some experts recommend to implement relationships before starting to enter any data into the tables. But it is completely up to you in which order you proceed.
No comments:
Post a Comment