29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

► The introduction guide at:<br />

http://jakarta.apache.org/struts/userGuide/introduction.html<br />

► The following articles on Struts in the VisualAge for Java zone of <strong>WebSphere</strong><br />

Developer Domain at:<br />

http://www7b.software.ibm.com/wsdd/<br />

– Apache Struts and VisualAge for Java, Part 1: Building Web-based<br />

<strong>Application</strong>s using Apache Struts<br />

– Apache Struts and VisualAge for Java, Part 2: Using Struts in VisualAge<br />

for Java 3.5.2 and 3.5.3<br />

2.5 Designing the database<br />

2.5.1 Normalization<br />

Database design is one of the most important steps in Web application design.<br />

Here we will discuss a few things to be kept in mind as we develop the database<br />

model for our application. When you design tables you must choose an<br />

appropriate data model and data types for them. You also need to be aware of<br />

the pros and cons of creating indexes and be thoughtful in determining their<br />

usefulness.<br />

In this section, we will explain some database concepts that need to be applied<br />

to create a sound, efficient data model.<br />

Normalization is the process of determining the structure of database tables. The<br />

objective is to introduce flexibility into the structure, while reducing redundant<br />

data. The reduction in data can improve the performance of update and delete<br />

statements, since the data is only touched once. By normalizing data, you try to<br />

ensure that all columns in the table depend on the primary key.<br />

There are four levels or degrees of normalization. We will limit our discussion to<br />

the third normal form for the sake of simplicity and to be within the scope of this<br />

publication.<br />

First normal form<br />

In the first normal form, each cell in the table is atomic, meaning that it contains<br />

only one value.<br />

Second normal form<br />

In the second normal form, each non-key column is dependent upon the entire<br />

key and not just part of the composite key.<br />

Chapter 2. <strong>Application</strong> design 37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!