15.10 - Example: Use JOIN INDEX with JSONExtractValue - Teradata Database

Teradata Database Teradata JSON

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1150-151K
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;