<?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 macth() in where clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/macth-in-where-clause/m-p/810075#M663513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hello,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;i'm trying to load all record from a table where the type field matches either vNumber1 or vNumber2 using the folowing code:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber1 = 9624;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber2 = &lt;SPAN style="font-size: 13.3333330154419px;"&gt;9701;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt; *&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL Select *&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;from Table1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;where match(type,$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber1 &lt;/SPAN&gt;),$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber2 &lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;however, this results in the following message:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: 'match' is not a recognized built-in function name.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL Select *&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;from Table1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;where match(type,9624,9701)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Why is the match function not working here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2015 09:23:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-16T09:23:50Z</dc:date>
    <item>
      <title>macth() in where clause</title>
      <link>https://community.qlik.com/t5/QlikView/macth-in-where-clause/m-p/810075#M663513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hello,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;i'm trying to load all record from a table where the type field matches either vNumber1 or vNumber2 using the folowing code:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber1 = 9624;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber2 = &lt;SPAN style="font-size: 13.3333330154419px;"&gt;9701;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt; *&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL Select *&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;from Table1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;where match(type,$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber1 &lt;/SPAN&gt;),$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber2 &lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;however, this results in the following message:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;ErrorSource: Microsoft OLE DB Provider for SQL Server, ErrorMsg: 'match' is not a recognized built-in function name.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL Select *&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;from Table1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;where match(type,9624,9701)&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Why is the match function not working here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 09:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macth-in-where-clause/m-p/810075#M663513</guid>
      <dc:creator />
      <dc:date>2015-02-16T09:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: macth() in where clause</title>
      <link>https://community.qlik.com/t5/QlikView/macth-in-where-clause/m-p/810076#M663514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Match() is a qv-function and will be not recognized from the database or the odbc-driver. You will need use a sql-version from match(), maybe IN or apply the where-clause to a load-statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;LOAD * where match(type,$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber1 &lt;/SPAN&gt;),$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vNumber2 &lt;/SPAN&gt;));&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SQL Select * from Table1;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 16:49:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macth-in-where-clause/m-p/810076#M663514</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-16T16:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: macth() in where clause</title>
      <link>https://community.qlik.com/t5/QlikView/macth-in-where-clause/m-p/810077#M663515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to be working! Thanks.&lt;/P&gt;&lt;P&gt;After considering your code, it seems like loading the entire table before filtering is an unnecessary load on the source DB.&amp;nbsp; I will therefore opt for direct filtering in the where Clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD * ;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL Select * from Table1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;where type = $(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13.3333330154419px; font-style: inherit; font-weight: inherit;"&gt;vNumber1 &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;or type = $(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: inherit; font-size: 13.3333330154419px; font-style: inherit; font-weight: inherit;"&gt;vNumber2 &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;))&lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 08:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/macth-in-where-clause/m-p/810077#M663515</guid>
      <dc:creator />
      <dc:date>2015-02-18T08:16:57Z</dc:date>
    </item>
  </channel>
</rss>

