I have the following query:
SELECT * FROM
JSON_TABLE(
'{"TrackingIds":[-1,-2],"Matrices":[22,23]}'
,"$" COLUMNS(
NESTED path "$.Matrices[*]" COLUMNS (Matrices INT path '$'),
NESTED path "$.TrackingIds[*]" COLUMNS (TrackingId INT path '$')
)) AS j;
Which yields:
Matrices TrackingId
22 \N
23 \N
\N -1
\N -2
How would I get it produce the below:
Matrices TrackingId
22 -1
23 -2
Almost like it is a Key Value lookup. Thanks, -Tanner