16.20 - NGRAM - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2020-03-25
dita:mapPath
xzf1512079057909.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
kby1472250656485

Purpose

Returns the number of n-gram matches between string1 and string2.

A high number of matching n-gram patterns implies a high similarity between the two strings.

Syntax



TD_SYSFNLIB.
Name of the database where the function is located.
string1
A character string or string expression.
If string1 is NULL, NULL is returned.
string2
A character string or string expression.
If string2 is NULL, NULL is returned.
length
The value ninn-gram, which is the comparison length.
position
Specifies that the n-gram is a positional n-gram match.