Zoomed Image

AMSX Scripting Language - Command : executetransactiondifference

Summary

Compare TEXT/ENDTEXT SQL output to an existing table and write difference rows as transactions

Description

Executes the collected SQL and compares the result set against the specified target table, then inserts rows that represent the differences as transaction records. Use for incremental data-sync scenarios where only changed rows should be recorded.

Parameters

ParameterDescription
cmdTarget table name to compare against
Argument 0Group-by units field name
Argument 1Last end date for the comparison window
Argument 2Optional WHERE clause to filter the comparison

Syntax


ExecuteTransactionDifference "Target table name to compare against", "Group-by units field name", "Last end date for the comparison window", "Optional WHERE clause to filter the comparison"

Return to the AMSX Command Reference