Look for changes to a particular column in a source table
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
This use case is for an application looking for changes past a particular threshold value or the application could be propagating only a single column to some other data target. This Use Case also shows how the sql CDC function, CDC_is_column_changed(), can be used to understand and process change data.
In this case, the changed values are searched for, and possibly found, in 2 steps. Step 1 is required to get the source file table number so that the Change Tracking table can be searched efficiently. Step 2, then gets any column value changes of interest.
For example, the column name is “my_searched_col” and that the fields being identified are ID_f1, ID_f2, ID_f3.
Step 1 is as follows:
|
The query for step 2 uses the sql CDC function CDC_is_column_changed() to get a list of the changes made to column “my_searched_col”. The _Operation value from the Change table is important, also, to interpret the state of the column after the operation. INSERT, UPDATE, and DELETE leave different values in existence or non-existence in the source table. The query for step 2 is as follows:
|
- Delete shows the value of the change tracked field in the row being deleted.
- An INSERT operation always has Change data for every change-tracked field, and for Identifying Fields.
- A DELETE operation has Change data for tracked fields, and has Identifying Fields data values.
With the data that is selected, the ETL application can do the intended Change processing, such as analyzing the distribution of values over a particular threshold value. The application logic may look like the following example:
|