JAROWINKLER_SIMILARITY
functionsupportedCore SQL functionsComputes the Jaro-Winkler similarity between two input strings. The function returns an integer between 0 and 100, where 0 indicates no similarity and 100 indicates an exact match. Note - The similarity computation is case-insensitive. - The computation is sensitive to all formatting characters, including white space characters. - The default scaling factor of 0.1 is used for the computation.
Syntax
JAROWINKLER_SIMILARITY( <string_expr1> , <string_expr2> )
Parameters
| Name | Required | Description |
|---|---|---|
string_expr1, string_expr2 | required | The input strings. |
Usage notes
- When the function compares short strings, the execution time is proportional to the product of the lengths of the input strings.
- When the function compares long strings, the execution time is proportional to the length of the longer string.
Collation details
No impact. In languages where the alphabet contains digraphs or trigraphs (such as “Dz” and “Dzs” in Hungarian), each character in each digraph and trigraph is treated as an independent character, not as part of a single multi-character letter. The result is based solely on the characters in the strings, not on the collation specifications of the strings.