skip to Main Content

Parsing JSON into Oracle type with nested table

Is there a way to make this Oracle query more optimal? Ideally without selecting from the same JSON_TABLE twice. SELECT to_dncl_verification(status_code => t.status, d_valid_from => to_date(t.d_valid_from, 'yyyy-mm-dd'), d_valid_to => to_date(t.d_valid_to, 'yyyy-mm-dd'), category_list => CAST( MULTISET (SELECT tc.category, CASE WHEN tc.allowed…

VIEW QUESTION

What does count(*)=1 do? – Mysql

SELECT AL1.ACCOUNTING_PERIOD, AL1.BUSINESS_AREA, AL1.SAP_ACCOUNT, AL1.ID, AL1.USD_AMT, AL1.BAN_NBR, AL2.CUST_NBR, AL2.CUST_NAME FROM DSL_AIM.AIM AL1, DSL_AML.AID AL2 WHERE ( ( AL1.ACCOUNTING_PERIOD_CD IN ( '2023-02' ) GROUP BY AL1.ACCOUNTING_PERIOD, AL1.BUSINESS_AREA, AL1.SAP_ACCOUNT, AL1.ID, AL1.USD_AMT, AL1.BAN_NBR, AL2.CUST_NBR, AL2.CUST_NAME HAVING COUNT(*) = 1; I get a different…

VIEW QUESTION
Back To Top
Search