SQL Queries - CAST Knowledge Base - Queries on Transactions - How to get the Merged object of a Main object in a Transaction Merge

Purpose of Query

This query returns the Merged object and the Main object of a Transactions merge:

You may refer to TCC - Merge/Unsplit objects for more information about Transaction merge

Applicable CAST Version
Release
Yes/No
8.3.x(tick)
8.2.x(tick)
8.1.x(tick)
8.0.x(tick)
Applicable RDBMS
RDBMS
Yes/No
Oracle Server(question)
Microsoft SQL Server(question)
CSS2(tick)
Query for CSS
SELECT ext.object_name AS Main_merge,
       K.keynam        AS detailed_merge
FROM   dss_transaction DSS
       JOIN <Name of current local base>.keys K
         ON K.idkey = DSS.form_id
       JOIN dss_keysextra ext
         ON ext.object_id = DSS.cal_mergeroot_id
WHERE  ext.object_name  = 'Entry point name'

You need to replace 'Entry point name' by the name of the Main object

Query result sample:

Query result example

"Menu.jsp";"Login.jsp"

If he query returns no rows, then the Transaction is not merged.

Interpretation:

Query result interpretation
 The above query returns the Main object and the Merged object
Query for Oracle
Enter the SQL query
Query result example

Query result interpretation

Query for SQL server
Enter the SQL query
Query result example

Query result interpretation

Notes/comments



Related Pages