Thursday, August 6, 2009

Creating Table in FileMaker Pro

By Jason Baker

FileMaker Pro is well-known for its ease of use. However, if you plan on using this program to create a valid database solution, it is important that you resist the temptation to dive straight in and spend some time planning your database. Only then can you be sure that the database management system (DBMS) you end up creating will be fit for purpose.

One of the first operations in the process of database design is the specification of tables and the columns they contain. Basically, your database will be a repository of related data which will allow you to retrieve this information in a useful fashion. At a very early stage in the design process, you need to identify each individual piece of information that is important for you. The information will almost certainly fall into different groups or categories. When you come to build your database, each of these separate categories will become a table.

Tables are made up of rows and columns, just like an Excel worksheet. Columns are known as fields; rows are known as records. A very simple database may contain only one table; but this is very rare; most databases need several tables, each containing information relating to one aspect of the overall system. It is important to ensure that you don't simply bundle information relating to different aspects of the project into the same table when designing your DBMS since this will lead to duplication and loss of data integrity.

Version 1 and 2 of FileMaker forced users to save all information in one table. It was only with the release of FileMaker 3 in 1995 that the program offered the use of multiple tables. In its current release, version 10, FileMaker automatically creates your first table for you whenever you create a new database. The table will have the same name as the database itself and contain no fields. Your first step will usually be to rename this table and define the fields you wish it to contain. To rename a table, activate the Tables tab in the Define Database dialogue, click on the current name, enter a new one and then click the Change button.

To create fields, go to the Fields tab in the Define database dialogue, enter the name of each of the fields that you want the table to contain, specify the data type of the field (Text, Number, Date, etc.) then click the Create button. Always ensure that you include a primary key field in each table you create. This will be used to define relationships between the various tables in your database solution. To create a primary field, just enter a name, set the field type to number then click Create. Next, click the Options button and in the Auto-Enter tab, switch on the option "Serial Number". Finally, in the Validate tab, switch on the options "Not Empty" and "Unique Value".

About the Author:

No comments: