<?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 Re: Syntax error on where clause why ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363323#M703112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this error message&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.png@01CD68C5.09EDFC50"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2012 15:18:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-23T15:18:19Z</dc:date>
    <item>
      <title>Syntax error on where clause why ?</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363321#M703110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13430561024007317" jivemacro_uid="_13430561024007317"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Sprvsr:&lt;BR /&gt;LOAD&amp;nbsp;&amp;nbsp; EMPL_GROUP_DESC as [SprvsrName],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMPL_GROUP_CD as [SprvsrID];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM [DELTEKTE].[TC_0012].[EMPL_GROUP];&lt;/P&gt;&lt;P&gt;LEFT JOIN (Sprvsr)&lt;BR /&gt;LOAD&amp;nbsp;&amp;nbsp; EMPL_ID as [TE_Employee_ID],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMPL_GROUP_CD&amp;nbsp; as [SprvsrID];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM [DELTEKTE].[TC_0012].[EMPL_GROUP_EMPL]&lt;BR /&gt;WHERE MATCH (left[EMPL_GROUP_CD], 1)= 'M';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 15:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363321#M703110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-23T15:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on where clause why ?</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363322#M703111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;WHERE MATCH &lt;STRONG&gt;( left([EMPL_GROUP_CD], 1), 'M');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE&amp;nbsp; left( [EMPL_GROUP_CD], 1) = 'M';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 15:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363322#M703111</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-23T15:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on where clause why ?</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363323#M703112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Swuehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got this error message&lt;/P&gt;&lt;P&gt;&lt;A href="cid:image001.png@01CD68C5.09EDFC50"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 15:18:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363323#M703112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-23T15:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error on where clause why ?</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363324#M703113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Match() function in the LOAD part. Match() is a QlikView function, not a standard SQL function. This should work (check parentheses):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13430569558778733" jivemacro_uid="_13430569558778733"&gt;&lt;P&gt;LOAD&amp;nbsp;&amp;nbsp; EMPL_ID as [TE_Employee_ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMPL_GROUP_CD&amp;nbsp; as [SprvsrID]&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;WHERE MATCH(Left([EMPL_GROUP_CD], 1) = 'M'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM [DELTEKTE].[TC_0012].[EMPL_GROUP_EMPL]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although you are using two functions instead of one for the same purpose, so you can either use WildMatch() or even better, just Left() in the same position as the previous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13430569558769642" jivemacro_uid="_13430569558769642"&gt;&lt;P&gt;WHERE LEFT(&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;[EMPL_GROUP_CD], 1) = 'M'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;WHERE WILDMATCH(&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;[EMPL_GROUP_CD]&lt;/SPAN&gt;, 'M*')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;WHERE &lt;SPAN style="font-family: 'Lucida Grande', Arial, Helvetica, sans-serif; background-color: #ffffff;"&gt;[EMPL_GROUP_CD]&lt;/SPAN&gt; LIKE 'M*'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 15:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-on-where-clause-why/m-p/363324#M703113</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-07-23T15:21:42Z</dc:date>
    </item>
  </channel>
</rss>

