sub query caching issue
We are getting same action taken date from sub-query instead of date based on RFXId. This issue started happening after oracle after oracle version upgrade from 11g to 12c. I would request community to help me on this.
Sample code snippet
SELECT DDD.*,
DDD.RFXID,
(SELECT NVL(TRUNC(MIN(WF1.ACTIONTAKEN_DATE),'DDD'),DDD.RFX_CREATED) FROM ESG_RFQ_WORKFLOW_HIST WF1 WHERE WF1.RFQ_ID=DDD.RFXID AND STATUS = 2) AS RFXSubmittedDate