<?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 in SQL not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963029#M330363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, I found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your&amp;nbsp; post got me thinking Vikas so I tried, Statuscode = '1' instead of Active and this worked! For some strange reason all the previews show the name but somewhere under water in the database it is called 0 and 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2015 12:24:48 GMT</pubDate>
    <dc:creator>pauldamen</dc:creator>
    <dc:date>2015-10-26T12:24:48Z</dc:date>
    <item>
      <title>Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963022#M330356</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;I have a SQL load which i want to incorporate a where clause in. I have done it before but I can't seem to get it working now and I am not doing anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; SELECT &lt;BR /&gt; ActualEnd, &lt;BR /&gt; ActualStart, &lt;BR /&gt; `lut_Event_Id` as EventID, &lt;BR /&gt; `lut_SponsorRevenue` as SponsorRevenue, &lt;BR /&gt; Name as CampaignName, &lt;BR /&gt; `OwnerId_Name` as UserName, &lt;BR /&gt; Id as CampaignID&lt;BR /&gt; ProposedEnd, &lt;BR /&gt; ProposedStart, &lt;BR /&gt; StateCode as CampaignStatus, &lt;BR /&gt; TypeCode as CampaignType&lt;BR /&gt; FROM CData.Campaign&lt;BR /&gt; where StateCode = 'Active'; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any idea what is going wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards, Paul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 11:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963022#M330356</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2015-10-26T11:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963023#M330357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean with 'not working'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you get an error message? &lt;/P&gt;&lt;P&gt;Or do you see more records with other StateCode than 'Active'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What if you run only this code in a script (no further LOADs, with possible autoconcatenated records to your table)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 11:30:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963023#M330357</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-26T11:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963024#M330358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it fail (with error message) or just give unexpected results ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 11:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963024#M330358</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2015-10-26T11:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963025#M330359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no comma after "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Id as CampaignID"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 11:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963025#M330359</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-10-26T11:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963026#M330360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry guys forgot to attach the error screenshots (error is to long so I made 2 screenshots to capture the full sentence)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find attached. I have never encountered that error before&lt;IMG alt="error1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103058_error1.PNG" style="width: 620px; height: 262px;" /&gt;&lt;IMG alt="error2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/103059_error2.PNG" style="width: 620px; height: 245px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963026#M330360</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2015-10-26T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963027#M330361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check with &lt;SPAN style="font-size: 10pt;"&gt; StateCode filed whether it is&amp;nbsp; 'Active' , I think it should have some different values&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Vikas&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963027#M330361</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2015-10-26T12:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963028#M330362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked but in the preview it gives me the exact values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error3.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/103060_error3.PNG" style="width: 620px; height: 600px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963028#M330362</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2015-10-26T12:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963029#M330363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, I found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your&amp;nbsp; post got me thinking Vikas so I tried, Statuscode = '1' instead of Active and this worked! For some strange reason all the previews show the name but somewhere under water in the database it is called 0 and 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards ,Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963029#M330363</guid>
      <dc:creator>pauldamen</dc:creator>
      <dc:date>2015-10-26T12:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963030#M330364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is some kind of enum used for that field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963030#M330364</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-10-26T12:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause in SQL not working</title>
      <link>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963031#M330365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can mark correct ans&amp;nbsp; to those post who have given you correct feedback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 03:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-clause-in-SQL-not-working/m-p/963031#M330365</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2015-10-27T03:52:52Z</dc:date>
    </item>
  </channel>
</rss>

