Example: Use JOIN INDEX with JSONExtractValue

Teradata Vantageā„¢ JSON Data Type

prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1150-162K
The example creates a JOIN INDEX with portions of a JSON instance extracted by JSONExtractValue.
CREATE JOIN INDEX json_table_ji AS
SELECT j.JSONExtractValue('$.name') AS Name, 
  j.JSONExtractValue('$.age') AS Age 
FROM json_table;