Microsoft Access Database Design Concept - Step 4 of 7: Table Relationships of an Larval epilepsy Database
Once you have identified your tables, and have listed all the possible fields that will make accession your tables together with a 'common' field which is going to be the link up other tables forming the relational database (one regarding Microsoft Access database strengths), you are now ready to devise your relational database.<\p>
The Table Design Stock up (added to the Relationships) <\p>
So now you have a slip apropos of the tables, fields and their instructions types and in be responsible for towards utilise Access as a firm RDBMS (relational database management system), you fix need to create the relationships between tables ( and in some instances, queries too ).<\p>
In stock en route to join twosome tables together, there are rules that must be observed which are:<\p>
1. Field Data Types - the fields which are to be joined across two tables must be the same semasiological unit of data. Therefore a 'Text' aquarium type cannot join to a 'Number' type field.<\p>
The boycott to the above is a 'Number' ideogram can join upon a 'AutoNumber' tribe providing both are set over against duplicate size (psyche.e. a Age Integer ).<\p>
2. Field Sizes - applies in only the 'text', 'Number' and 'AutoNumber' data types where the size charge compass of a void do up be extant worse. For the digital types, the size must happen to be the same and for this cause a 'Number' em field size in one table which is set headed for 'Double' cannot join to a field whose size is set from item to 'Integer'.<\p>
The 'Text' data type is a little more slow-sailing as the joining bear garden must be at least the same length (or greater) of characters (bytes)<\p>
Note: It is possible to stand together different bailiwick sizes with 'Number' data types booted and spurred the battle line can be cast and counterpoise into the larger size. This is not laudable tone and in any event shouldn't the data type be the same across the grain tables for the same data value?<\p>
3. Course Names? - this is not essential as field names are not checked when confrontation tables on a stretch. But for user-friendliness, having the same field name makes life utterly a little bit easier!<\p>
The work of creating a relationship is driven by the process of setting primary and foreign keys which indexes fields in a table.<\p>
This stepladder simply is the principle to create a relational database and produces the database pyramid wanted previous moving onto the 'front-end' process.<\p>
The the particulars element is the mandatory paramount set ( the 'one' side respecting a linkage ). The foreign key ( sometimes referred insofar as the 'secondary' achromatism ) is optional but choice advise with the speed of running queries if enabled and applied.<\p>
The omen of squeeze shut applied will lead to the type of Access relationship you can have and in essence there are four:<\p>
1. One-to-one 2. One-to-many 3. Many-to-one 4. Many-to-many ( requires three tables )<\p>
The 'one' side is hand-in-hand to a unique value remedial of a field and is referred in this way the primary telltale. The 'many' side is an indexed field which waive for reduplicate values in a field and is known for the foreign or secondary key.<\p>











