
Register the database: Allow the other applications in OpenOffice to have access to the data in the database. This can make sure that all new entries, regardless of who did it, must follow the rules of your database. Connect to an existing database (such as MySQL, Oracle, JDBC, etc) For our purposes we are going to create a new database, so select that entry and click Next. If it’s essential that a record contain a certain field (in our example, and employee MUST have an ID number) make sure to set Entry Required to True for that field, as in the screenshot above. If you chose the fields from the dropdown menus in the wizard, these types should be automatically applied to the right fields. A number like EmployeeID makes sense as an integer, and text fields like first and last name should be text (CHAR or VARCHAR). On the second page of the Table Design wizard, you specify what type of data will go into that field. There’s (probably) no chance of two employees having the same ID number, so it makes a perfect primary key. That may sound confusing, but it typically just means that you need a column like EmployeeID, and each entry has a different, unique number. In short, this means that tables should generally have a column where each row in that column is unique on that table. Secondly, it’s important for tables to have a primary key. If you find yourself putting anything into a table that does not match with the title of that table (like Employee or Billing), it probably belongs in a different table. For starters, each table should represent only one idea – ie the Employee table should not contain shipping information. Database design is far too large a subject to cover here in detail, so we’ll just mention a few basics and leave some links at the bottom of this page for more detail.
