自 2021 年 1 月起,经典文件类型不再可用。您可以转换经典文件或下载 PDF 文件。了解更多

Query Use of Levenshtein Distance - Case Sensitivity

已回答
0

评论

4 条评论

  • 正式评论
    Tony Scalese

    Glad it worked and we got you off and running.  Come back any time with questions. 

  • Alec Schwager

    For more context - I am worried that a distance of 2 could indicate a matching string that only differs in case. 

    e.g., if the vendor name is 'CAM' and it matches to a name value of 'Cam,' I fear current functionality would return a Levenshtein Distance of 2, when I would prefer it return a distance of 0. 

    0
  • Tony Scalese

    Hi Alec,

    Thanks for using the Community!  Would the use of UPPER be a viable option?

    Ex: levenshtein_distance(UPPER(field1)UPPER(field2))

    Tony

    1
  • Alec Schwager

    Tony,

    That worked like a charm. I did not realize there was a function to temporarily change the case of data only for the sake of a query. Thank you for your quick response!

    Alec

    0

请先登录再写评论。