17.10 - Example: Extract Specific JSON Values from the JSON Document - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

This example selects specific values from the JSON name/value pair using JSON string syntax. If a row does not have a specific name requested, null is returned.

select QueryID, RowNum, ParamJSON."Data Record".x from QryLogParamJSON;

Result:

QueryID            RowNum ParamJSON.Data Record.x
------------------ ------ -----------------------
307190733539634351 1      ?
307190733539634351 2      10