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.

SHIPPING_ORDER table<br />

The SHIPPING_ORDER table contains orders submitted by customers<br />

(Table 6-3).<br />

Table 6-3 SHIPPING_ORDER table<br />

Column type Length Nullable Key<br />

ORDER_NUMBER integer N Y<br />

CUSTOMER_ID character 10 N N<br />

ITEM_NUMBER character 5 N N<br />

QUANTITY smallint Y N<br />

SALE_PRICE decimal 9,2 Y N<br />

ORDER_DATE date Y N<br />

STATUS character 1 Y<br />

USERS table<br />

The USERS table contains users with administrative capabilities (Table 6-4).<br />

Table 6-4 USERS table<br />

Column type Length Nullable Key<br />

USERNAME character 8 N Y<br />

PASSWORD character 8 N N<br />

When you created the schema (db2admin) earlier, a new folder structure for the<br />

schema was created under the SALESAPP folder. This structure includes<br />

subfolders for database elements (tables, views, etc.). To create the ITEM table<br />

in our database schema:<br />

1. Select the WEB-INF/databases/SALESAPP/db2admin/tables folder,<br />

right-click, and select New -> New table definition.<br />

2. Enter ITEM for the table name.<br />

166 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

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

Saved successfully!

Ooh no, something went wrong!