<?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: Where Clause with ODBC Connection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293229#M625222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this query works in another query tool.&amp;nbsp; It works in Cognos Impromptu, AS400 query tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Nov 2016 20:02:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-22T20:02:37Z</dc:date>
    <item>
      <title>Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293223#M625216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a where clause to filter data that is loaded via an ODBC connection.&amp;nbsp; I've tested the same where clause in an alternative qvw document which reads from a csv file and the syntax works without error.&amp;nbsp; Why doesn't the syntax work when there is an ODBC connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE ([ENTITY_STATUS] ='A' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031) OR ([ENTITY_STATUS] ='T' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031 AND [TERMIN_DATE]&amp;gt;20161031);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293223#M625216</guid>
      <dc:creator />
      <dc:date>2016-11-22T19:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293224#M625217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you put your ODBC connection outside your table name like: Check if this works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 TO ADGDTAPR (XUserId is SLIMISJMPbYCDRD, XPassword is RTCIbHJOBTbOWSNOSBMA);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-------- Start Multiple Select Statements ------&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;T1_ACTIVE:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT ACCOUNT_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BASE_PREMIUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMER_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTITY_STATUS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORIGINAL_EFF_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_EFF_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_TYPE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROFESSION_FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STUDENT_FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMIN_DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM S40TREV.ADGDTAPR.NSOCVGP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE ([ENTITY_STATUS] ='A' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031) OR &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ([ENTITY_STATUS] ='T' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031 AND [TERMIN_DATE]&amp;gt;20161031);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:51:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293224#M625217</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-22T19:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293225#M625218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested your script with the ODBC outside the table name and it did not work.&amp;nbsp; The ODBC works inside the table name when there is no WHERE clause.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293225#M625218</guid>
      <dc:creator />
      <dc:date>2016-11-22T19:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293226#M625219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this query works in Toad or another query tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT ACCOUNT_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BASE_PREMIUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMER_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTITY_STATUS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORIGINAL_EFF_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_EFF_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_TYPE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROFESSION_FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STUDENT_FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMIN_DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM S40TREV.ADGDTAPR.NSOCVGP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE ([ENTITY_STATUS] ='A' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031) OR ([ENTITY_STATUS] ='T' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031 AND [TERMIN_DATE]&amp;gt;20161031);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293226#M625219</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-11-22T19:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293227#M625220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the error you are getting ? Can you send me a screen shot ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 19:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293227#M625220</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-22T19:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293228#M625221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the error, which is also in a file atttacment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/144554_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:01:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293228#M625221</guid>
      <dc:creator />
      <dc:date>2016-11-22T20:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293229#M625222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this query works in another query tool.&amp;nbsp; It works in Cognos Impromptu, AS400 query tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293229#M625222</guid>
      <dc:creator />
      <dc:date>2016-11-22T20:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293230#M625223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an access violation i can see in the error. Can you try running this script in debug mode? &lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ODBC CONNECT32 TO ADGDTAPR (XUserId is SLIMISJMPbYCDRD, XPassword is RTCIbHJOBTbOWSNOSBMA);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;FIRST 100 LOAD&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;SQL SELECT ACCOUNT_NO,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BASE_PREMIUM,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMER_NO,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTITY_STATUS,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORIGINAL_EFF_DATE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_EFF_DATE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_TYPE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROFESSION_FLAG,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE_CODE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE_CODE,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STUDENT_FLAG,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMIN_DATE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM S40TREV.ADGDTAPR.NSOCVGP&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE ([ENTITY_STATUS] ='A' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031) OR ([ENTITY_STATUS] ='T' AND [ORIGINAL_EFF_DATE]&amp;lt;=20151031 AND [TERMIN_DATE]&amp;gt;20161031);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293230#M625223</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-22T20:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293231#M625224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the script copied from Cognos Impromptu, the syntax works in this software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where T1.ENTITY_STATUS = 'A' and T1.ORIGINAL_EFF_DATE &amp;lt; 20151101 or T1.ENTITY_STATUS = 'T' and T1.ORIGINAL_EFF_DATE &amp;lt; 20151101 and T1.TERMIN_DATE &amp;gt; 20161031&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293231#M625224</guid>
      <dc:creator />
      <dc:date>2016-11-22T20:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293232#M625226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copied your script exactly, ran in debug, got same error.&amp;nbsp; I've tested my script before with a very simple WHERE clause and it worked fine, so I know it is something in the WHERE clause that is causing problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293232#M625226</guid>
      <dc:creator />
      <dc:date>2016-11-22T20:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293233#M625228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I retested the simple WHERE clause and found that it only works when loading from csv, but does not work when loading from ODBC.&amp;nbsp; This makes me think that there may be security restrictions that allow me to load data, but not filter the data, but I'm still not certain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293233#M625228</guid>
      <dc:creator />
      <dc:date>2016-11-22T20:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293234#M625230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Comment the script and just try to connect to ODBC and see. Like comment the SQL script and just debug using the ODBC Connection. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293234#M625230</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-22T20:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293235#M625234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just did exactly what you recommended.&amp;nbsp; I commented the WHERE clause and ran the script.&amp;nbsp; The ODBC connection works perfectly, the data is loading.&amp;nbsp; If I then uncomment the WHERE clause the script fails when it reads the WHERE clause.&amp;nbsp; As noted in my prior reply, there may be security restrictions that allow loading data, but not filtering, but I'm not sure this is the cause because I can filter in other softwares.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293235#M625234</guid>
      <dc:creator />
      <dc:date>2016-11-22T20:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293236#M625236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you do this in the load script and see what you get like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1_ACTIVE:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Where(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ([ENTITY_STATUS] ='A' AND [ORIGINAL_EFF_DATE]&amp;lt;= '20151031') &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; OR &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ([ENTITY_STATUS] ='T' AND [ORIGINAL_EFF_DATE]&amp;lt;= '20151031' AND [TERMIN_DATE] &amp;gt; '20161031')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ACCOUNT_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BASE_PREMIUM,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CUSTOMER_NO,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENTITY_STATUS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORIGINAL_EFF_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_EFF_DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; POLICY_TYPE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROFESSION_FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOURCE_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STATE_CODE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; STUDENT_FLAG,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TERMIN_DATE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM S40TREV.ADGDTAPR.NSOCVGP;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293236#M625236</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-22T20:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293237#M625238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your syntax worked, but I want to understand all your changes. &lt;/P&gt;&lt;P&gt;1.&amp;nbsp; You loaded all fields first.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; You enclosed the entire WHERE clause in parenthesis&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; You made no changes to the SQL SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works perfect, but don't WHERE clauses typically follow FROM clauses ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 20:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293237#M625238</guid>
      <dc:creator />
      <dc:date>2016-11-22T20:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293238#M625240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am not sure why it was giving access violation issues with the SQL script, so thought would pull all the data first into QV and then do the condition @ QV side.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Your syntax worked, but I want to understand all your changes.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1.&amp;nbsp; You loaded all fields first.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff6600;"&gt;Thought would pull all the data first into QV as we are getting some issues @ the SQL level. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2.&amp;nbsp; You enclosed the entire WHERE clause in parenthesis&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff6600;"&gt;This is just a way we write if we are using OR's and AND's to make it more consistent. Not hard fast rule here. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;3.&amp;nbsp; You made no changes to the SQL SELECT&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff6600;"&gt;Yes, I am telling QV to read all the data from SQL table. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;It works perfect, but don't WHERE clauses typically follow FROM clauses ?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff6600;"&gt;In Qlikview i am telling to load the table with WHERE condition, we are doing a preceding load so we do not need any FROM by default QV understands it. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293238#M625240</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-11-22T21:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause with ODBC Connection</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293239#M625242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your help !!&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 21:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause-with-ODBC-Connection/m-p/1293239#M625242</guid>
      <dc:creator />
      <dc:date>2016-11-22T21:13:51Z</dc:date>
    </item>
  </channel>
</rss>

