DE
Size: a a a
DE
DE
DE
DE
DE
DE
CO
select CONDITIONs->'$[*].type' from
(
select '[{"type":"DEP_VALUE","operator":"in","value":["1000+"]}]' CONDITIONs
union all
select '[{"type":"DAYS_REG","operator":"greater or equal","value":"30"},{"type":"DATE_LAST_DEP","operator":"less or equal","value":"2019-06-30"},{"type":"DEP_VALUE","operator":"in","value":["201-500"]},{"type":"NETREVENUE_WEEK","operator":"in","value":["200-500"]}]'
) segmentations
where JSON_CONTAINS(CONDITIONs,'DAYS_REG','$.type')
DE
select CONDITIONs->'$[*].type' from
(
select '[{"type":"DEP_VALUE","operator":"in","value":["1000+"]}]' CONDITIONs
union all
select '[{"type":"DAYS_REG","operator":"greater or equal","value":"30"},{"type":"DATE_LAST_DEP","operator":"less or equal","value":"2019-06-30"},{"type":"DEP_VALUE","operator":"in","value":["201-500"]},{"type":"NETREVENUE_WEEK","operator":"in","value":["200-500"]}]'
) segmentations
where JSON_CONTAINS(CONDITIONs,'DAYS_REG','$.type')
CO
DE
CO
CO
DE
CO
CO
DE
DE
CO
DE