|
自 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

登入寫評論。