skip to Main Content

Oralce JSON_TRANSFORM, set/insert/append not working

Why this: with j(jval) AS ( select JSON_SERIALIZE('{"contract" :{"contract-type" : "P", "contract-id" : 123451, "proposal-no" : "123456", "serial-no" : "serialasd922", "product-code" : "s093", "contract-sign-dt" : "2016-12-01T00:00:00", "contract-start-dt" : "2016-12-09T00:00:00" } }' pretty) from dual ) SELECT json_transform(jval, insert '$.contract[*].x' =…

VIEW QUESTION

JSON_TABLE()-Function in Oracle's SQL

I'm currently struggling to import my API-Response to my Oracle table. I'm using the JSON_TABLE() but this function is not working as expected. I have a JSON value like this: { "CAR-1": [ { "state": "waiting", "timestamp": 1720476000 } ],…

VIEW QUESTION

Converting JSON response into Tables in ORacle database

{ "general": { "product_key": "501088", "group_subtype_id": 1, "group_subtype_name": "Wheel Speed Sensor", "variant_id": 6, "variant_name": "DF22", "rb_customer_id": 287383 }, "partnumbers": [ { "partnumber": "F04FD009BD", "pn_type": "Series OEM", "mat_status": "00 - planned", "properties": [ {"property_id":4,"property_name":"ASIC P/N","value_id":38,"value":"8905502648"}, {"property_id":5,"property_name":"ASIC type","value_id":56,"value":"TLE4942"}, {"property_id":6,"property_name":"Axle","value_id":62,"value":"Front / Rear Right"},…

VIEW QUESTION

Translate JSON data into ORACLE sql table

``` select JT.* FROM JSON_TABLE (json_sample) '$.general[*]' COLUMNS ( product_key NUMBER PATH '$.product_key', group_subtype_id NUMBER PATH '$.group_subtype_id', group_subtype_name VARCHAR2 ( 100 ) PATH '$.group_subtype_name', variant_id NUMBER PATH '$.variant_id', variant_name VARCHAR2 ( 100 ) PATH '$.variant_name', rb_customer_id NUMBER PATH '$.rb_customer_id', NESTED…

VIEW QUESTION
Back To Top
Search