<?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 LOAD using SELECT statement inside a WHERE clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/LOAD-using-SELECT-statement-inside-a-WHERE-clause/m-p/878576#M658518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I execute this piece of code, the "Garbage after statement" error shows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Trade)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; TRADE_ID,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RESIDENT Trade_temp&lt;/P&gt;&lt;P&gt;WHERE TRADE_ID IN (SELECT trade_id FROM trade WHERE TRADE_YEAR &amp;lt; 2015 AND status=1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use the SELECT statement because I don't have all the information in the Trade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2015 13:25:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-05-29T13:25:53Z</dc:date>
    <item>
      <title>LOAD using SELECT statement inside a WHERE clause</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-using-SELECT-statement-inside-a-WHERE-clause/m-p/878576#M658518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I execute this piece of code, the "Garbage after statement" error shows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate(Trade)&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt; TRADE_ID,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;RESIDENT Trade_temp&lt;/P&gt;&lt;P&gt;WHERE TRADE_ID IN (SELECT trade_id FROM trade WHERE TRADE_YEAR &amp;lt; 2015 AND status=1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to use the SELECT statement because I don't have all the information in the Trade.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 13:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-using-SELECT-statement-inside-a-WHERE-clause/m-p/878576#M658518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-29T13:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: LOAD using SELECT statement inside a WHERE clause</title>
      <link>https://community.qlik.com/t5/QlikView/LOAD-using-SELECT-statement-inside-a-WHERE-clause/m-p/878577#M658520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&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;SELECT trade_id "temp_trade_id" FROM trade WHERE TRADE_YEAR &amp;lt; 2015 AND status=1);&lt;/SPAN&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;&lt;BR /&gt;&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;concatenate(Trade)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TRADE_ID,&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;...&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;...&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Trade_temp&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE EXISTS (temp_trade_id, TRADE_ID);&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;Drop Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2015 15:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/LOAD-using-SELECT-statement-inside-a-WHERE-clause/m-p/878577#M658520</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-29T15:28:47Z</dc:date>
    </item>
  </channel>
</rss>

