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

How To Parse JSON DATA IN ORACLE

A table has JSON data in the HUGECLOB column. And I want to parse it. How can I do it? {"errors":{"destination_country_id":["can not be blank"],"dispatch_country_id":["can not be blank"],"vehicle_id":["can not be blank"],"trailer_id":["can not be blank"]}} I tried this; SELECT t.* FROM table,…

VIEW QUESTION

JSON_TABLE – Get nodes regardless of path

In a XML like this: <item> <id>1</id> <name>ITEM 1</name> <subitems> <item> <id>2</id> <name>SUBITEM 1</name> <subitems/> </item> <item> <id>3</id> <name>SUBITEM 2</name> <subitems> <item> <id>4</id> <name>SUBITEM 3</name> <subitems/> </item> </subitems> </item> </subitems> </item> There can be several levels of subitems in the…

VIEW QUESTION
Back To Top
Search