DB2 Universal Database™ for iSeries sample tables

 

These sample tables are referred to and used in the SQL programming and the SQL reference topic collections.

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.

In these sample tables, a question mark (?) indicates a null value.

 

Parent topic:

Reference

 

Related reference


Referential integrity and tables
Example: DELETE rules
Multiple-row FETCH using a row storage area