Example: JSONExtractValue with NULL Results - Advanced SQL Engine - Teradata Database

JSON Data Type

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
uwa1591040057999.ditamap
dita:ditavalPath
uwa1591040057999.ditaval
dita:id
B035-1150
lifecycle
previous
Product Category
Teradata Vantage™

This example shows the JSONExtractValue method returning NULL results. This query gets the job associated with each person.

JSONExtractLargeValue can be substituted for JSONExtractValue.
SELECT eno, edata.JSONExtractValue('$..job')
FROM my_table
ORDER BY 1;

Result:

ENO edata.JSONExtractValue(…)
---------------------------------
1   programmer
2   ?
3   CPA
4   small business owner