Creating the database
Create the database, create and populate the database tables, and create the stored procedure.
Before you begin
- You must have installed a supported database server; see IBM® App Connect Enterprise system requirements. This scenario uses a DB2® database server.
- Download a copy of the createdbtablesclients.zip file. This file contains an SQL script that creates and populates the database tables and the stored procedure that are needed in this scenario.
Procedure
Complete the following steps to set up the sample DB2 database configuration that was used to develop the scenario:
Results
You have a database, named CLIENTS, which contains the database tables, data, and stored procedure that you need to complete the scenario.
The stored procedure takes an input value for Employee Number, and returns data for the selected employee from four different tables in the database. Within the procedure, selected values from one table are used to select rows from other tables. By using the stored procedure, you can make a single call to the database. The database server then completes a number of operations before returning the result.