DB2 UDB for iSeries sample tables

This topic contains the sample tables referred to and used in this topic and the SQL Reference topic collection.

Along with the tables are the SQL statements for creating the tables.

As a group, the tables include information that describes employees, departments, projects, and activities. This information makes up a sample application demonstrating some of the features of the DB2® UDB Query Manager and SQL Development Kit licensed program. All examples assume the tables are in a schema named CORPDATA (for corporate data).

A stored procedure is shipped as part of the system that contains the DDL statements to create all of these tables, and the INSERT statements to populate them. The procedure will create the schema specified on the call to the procedure. Since this is an SQL external stored procedure, it can be called from any SQL interface, including interactive SQL and iSeries™ Navigator. To call the procedure where SAMPLE is the schema you want to create, issue the following statement:
CALL QSYS.CREATE_SQL_SAMPLE ('SAMPLE')
The schema name must be specified in uppercase. The schema must not already exist.
Note: In these sample tables, a question mark (?) indicates a null value.
Related concepts
SQL programming
Related reference
Referential integrity and tables
Example: DELETE cascade rule
Multiple-row FETCH using a row storage area