<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Implement FUZZY logic in SQL HANA Expert Script in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-fuzzy-logic-in-sql-hana-expert-script/m-p/448172#M13526</link>
    <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;I am working on an SAP
BW on HANA system version 7.4 SP09, where I faced a problem during implementing
the FUZZY logic. Because of certain restrictions I am not able to do this in a
procedure in SAP HANA directly. My idea was to do it in a Transformation in the
BW as a SAP HANA Expert Script.&lt;/P&gt;&lt;P&gt;My goal is to clean
duplicates of material. If I do this via SELECT in SAP HANA (see coding below),
it is working fine.&lt;/P&gt;&lt;P&gt;Select score() as Score, “material”&lt;/P&gt;&lt;P&gt;FROM ‘schema_name’.’table_name’&lt;/P&gt;&lt;P&gt;WHERE contains((text), 'phone', FUZZY(0.7))&lt;/P&gt;&lt;P&gt;ORDER BY text&lt;/P&gt;&lt;P&gt;My result:&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/30825-hcyf9.png" /&gt;&lt;/P&gt;&lt;P&gt;My coding – where I
want to find duplicates for materials in the transformation - looks like this:&lt;/P&gt;&lt;P&gt;Select score () AS Score, *&lt;/P&gt;&lt;P&gt;FROM ‘schema_name’.’table_name’&lt;/P&gt;&lt;P&gt;WHERE CONTAINS ("field_name", 'phone',FUZZY(0.7));&lt;/P&gt;&lt;P&gt;outTab = select&lt;/P&gt;&lt;P&gt;“material”,&lt;/P&gt;&lt;P&gt;“materialID”,&lt;/P&gt;&lt;P&gt;Score AS “percentage”&lt;/P&gt;&lt;P&gt;FROM :inTab ;&lt;/P&gt;&lt;P&gt;The error occurs with
a Syntax problem that I can’t reach the table and the schema/table has to
declared in the method. For an intern tables there has to be added a ‘:’.&lt;/P&gt;&lt;P&gt;Did someone know the
correct syntax to implement the FUZZY logic?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2017 16:22:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-04-19T16:22:11Z</dc:date>
    <item>
      <title>Implement FUZZY logic in SQL HANA Expert Script</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/implement-fuzzy-logic-in-sql-hana-expert-script/m-p/448172#M13526</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;I am working on an SAP
BW on HANA system version 7.4 SP09, where I faced a problem during implementing
the FUZZY logic. Because of certain restrictions I am not able to do this in a
procedure in SAP HANA directly. My idea was to do it in a Transformation in the
BW as a SAP HANA Expert Script.&lt;/P&gt;&lt;P&gt;My goal is to clean
duplicates of material. If I do this via SELECT in SAP HANA (see coding below),
it is working fine.&lt;/P&gt;&lt;P&gt;Select score() as Score, “material”&lt;/P&gt;&lt;P&gt;FROM ‘schema_name’.’table_name’&lt;/P&gt;&lt;P&gt;WHERE contains((text), 'phone', FUZZY(0.7))&lt;/P&gt;&lt;P&gt;ORDER BY text&lt;/P&gt;&lt;P&gt;My result:&lt;/P&gt;&lt;P&gt; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/30825-hcyf9.png" /&gt;&lt;/P&gt;&lt;P&gt;My coding – where I
want to find duplicates for materials in the transformation - looks like this:&lt;/P&gt;&lt;P&gt;Select score () AS Score, *&lt;/P&gt;&lt;P&gt;FROM ‘schema_name’.’table_name’&lt;/P&gt;&lt;P&gt;WHERE CONTAINS ("field_name", 'phone',FUZZY(0.7));&lt;/P&gt;&lt;P&gt;outTab = select&lt;/P&gt;&lt;P&gt;“material”,&lt;/P&gt;&lt;P&gt;“materialID”,&lt;/P&gt;&lt;P&gt;Score AS “percentage”&lt;/P&gt;&lt;P&gt;FROM :inTab ;&lt;/P&gt;&lt;P&gt;The error occurs with
a Syntax problem that I can’t reach the table and the schema/table has to
declared in the method. For an intern tables there has to be added a ‘:’.&lt;/P&gt;&lt;P&gt;Did someone know the
correct syntax to implement the FUZZY logic?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:22:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/implement-fuzzy-logic-in-sql-hana-expert-script/m-p/448172#M13526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-04-19T16:22:11Z</dc:date>
    </item>
  </channel>
</rss>

