17.10 - Example: Querying for Second Occurrence of 'store' - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

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

The following query:

SELECT NVP('store = whole foods&&store: ?Bristol farms','store', '&&', '\ =\  :\ ?', 2);

returns 'Bristol farms'.

In this example, occurrence = 2 instructs NVP to search for the second occurrence of 'store'.