Find change data references for a table row with minimal Change tracking
- Last Updated: February 11, 2026
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
Find change data references for a table row with minimal Change tracking
When the table Policy defines change tracking as Level 0 or Level 1, the Change table is not used. Instead, the Change Tracking table identifies the type of change and the row in the source table that was changed.
The following example is a simple case of an application table with only one CDC table policy applied. This query identifies all the changes made to a specific row in a source table in the order in which the changes are made. The change data is accessed in two steps in this use case.
-
Join
- Pub.” _File” to get source table definition’s unique dbkey based on table name, owner.
- Change Tracking to get source table number, recid, partition number to identify source table changes for a particular source table row.
- Group the joined data so that multiple changes for a given row are reduced down to one row in the Result Set.
|
Optionally, the Recid column from the query in Step 1 can be used to get the current version of the source table row that changed, and is as follows:
|
Step 2 uses a query which returns a result set of the set of changes for each given RecID from the first query in the change sequence order:
|
These changes could be Insert, Delete, or Update operations and the application logic can decide how to transfer each change to the Data Warehouse. Step 1 and Step 2 of the query can be embedded inside an application in nested loops as shown in the following table:
|