I have a table in oracle with this definition
create table PARAM(
ID VARCHAR(30),
DOCUMENT blob
)
Document is stored in a json format.
{"id":"value","parameters":[{...},{...},{...}]}
How can i extract size for array parameters in sql?
I need extract array size for each table record, and after sum all this values.
ex:
1 step:
ID ARRAY_SIZE
---- ----------
1 10
2 0
3 3
2 step:
TOTAL_RECORDS TOTAL_ARRAYS_SIZE
------------- -----------------
3 13
Can someone please give me an idea how to do that ?