You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from exp join act on exp.rn = act.rn and exp.col_name = act.col_name
216
220
where dbms_lob.compare(exp.col_val, act.col_val) != 0)
217
221
unpivot ( data_item for diff_type in (exp_item as 'Expected:', act_item as 'Actual:')
218
-
)
222
+
))
219
223
union all
220
224
select
221
225
item_no as rn, case when exp_data_id is null then 'Extra:' else 'Missing:' end as diff_type,
222
226
xmlserialize(content (extract((case when exp_data_id is null then act_item_data else exp_item_data end),'/*/*')) no indent) diffed_row,
223
227
nvl2(:join_by,ut3.ut_compound_data_helper.get_pk_value(:join_by,case when exp_data_id is null then act_item_data else exp_item_data end),null) pk_value
228
+
,case when exp_data_id is null then 1 else 2 end rnk
229
+
,2 final_order
224
230
from ut_compound_data_diff_tmp i
225
231
where diff_id = :diff_id
226
232
and act_data_id is null or exp_data_id is null
227
233
)
228
-
order by rn ,diff_type ]'
234
+
order by final_order,
235
+
case when final_order = 1 then rn else rnk end,
236
+
case when final_order = 1 then rnk else rn end ]'
229
237
bulk collect into l_results
230
238
using a_exclude_xpath, a_include_xpath, a_join_by_xpath,
0 commit comments