Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 281 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 106 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- Find Partners
- For Partners
Syntax to fetch pending transfer details from Data_cache column in hrc_txn_data
Summary
Syntax to fetch pending transfer details from Data_cache column in hrc_txn_data
Content
Hi,
We need to fetch the pending transaction Transfer details like New Location,New Position,New Grade,New Job etc. We are aware that We can capture these details in data_cache column in hrc_txn_data table. As these column captures many entries, how can we fetch only one value(say New location, New Position,New Grade,New job etc.)? Is there any syntax to fetch that alone? Please suggest.
Thanks,
Nirmal kumar
Comments
-
Hi Nirmal,
Below code would fetch you New location details from data cache column. You need to replcae the value which you want to fetch in below code. Let me know if any doubt.
select regexp_replace(substr(Q.LocationId_New,instr(Q.LocationId_New,'<',1) +10,instr(Q.LocationId_New,'</')-11),'<|>|OldValue|</|/>|NewValue','') LocationId_New
From
(Select xmltype(txndata.DATA_CACHE).extract('.//Compare/AttributeName[text()="LocationId"]/../NewValue').getStringVal() LocationId_New,transaction_id
from hrc_txn_data txndata ) QThanks
Vivek
0