<?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 SQL subquery (SELECT * FROM table WHERE x IN (SELECT....) ) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149510#M27680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all I would test the SQL query.&lt;/P&gt;&lt;P&gt;That should work normally but maybe there is an issue to the variable replacement in the query.&lt;/P&gt;&lt;P&gt;Therefore I would run a Debugger and when the step is on the query, I read the generated query in the middle window. There you should see the exact query Qlikview is trying to run and check if the variable value is well replaced in it.&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Actually what is the error message ?&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jul 2009 20:40:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-16T20:40:45Z</dc:date>
    <item>
      <title>SQL subquery (SELECT * FROM table WHERE x IN (SELECT....) )</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149506#M27676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to make a query with a subquery in QV, but i get an error.&lt;/P&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;Here's my query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;SQL SELECT * FROM JEST WHERE OBJNR IN (SELECT OBJNR FROM JCDS WHERE UDAT &amp;gt;= '$(vDateFrom)');&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;$(vDateFrom) is a date i use to extract from a certain timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know if this statement is possible or if im doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tnx&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 19:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149506#M27676</guid>
      <dc:creator />
      <dc:date>2009-07-16T19:01:01Z</dc:date>
    </item>
    <item>
      <title>SQL subquery (SELECT * FROM table WHERE x IN (SELECT....) )</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149507#M27677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao!&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;Completo:&lt;BR /&gt;Load OBJNR as OBJNR_OK,&lt;BR /&gt; UDAT&lt;BR /&gt; WHERE UDAT &amp;gt;= $(vDateFrom);&lt;BR /&gt;SELECT OBJNR, UDAT&lt;BR /&gt; FROM JCDS;&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;Carico:&lt;BR /&gt;LOAD *&lt;BR /&gt;where EXISTS(OBJNR_OK, OBJNR);&lt;BR /&gt;SELECT * FROM JEST;&lt;/P&gt;&lt;P&gt;Drop table Completo;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniela&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 19:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149507#M27677</guid>
      <dc:creator />
      <dc:date>2009-07-16T19:12:59Z</dc:date>
    </item>
    <item>
      <title>SQL subquery (SELECT * FROM table WHERE x IN (SELECT....) )</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149508#M27678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniela,&lt;/P&gt;&lt;P&gt;i dont want to load the complete JCDS table first.&lt;/P&gt;&lt;P&gt;It contains so much date, it would kill the performance of the system.&lt;/P&gt;&lt;P&gt;Thats why i want to extract only the data from JEST where the objnr is updated in the JCDS table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rey-man&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 19:24:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149508#M27678</guid>
      <dc:creator />
      <dc:date>2009-07-16T19:24:41Z</dc:date>
    </item>
    <item>
      <title>SQL subquery (SELECT * FROM table WHERE x IN (SELECT....) )</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149509#M27679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried this and it works perfectly!&lt;BR /&gt;Then must go for your&lt;/P&gt;&lt;P&gt;Set vFornit = 'F0000095';&lt;/P&gt;&lt;P&gt;Carico:&lt;BR /&gt;LOAD&lt;BR /&gt; CHIAVE as Ofr_Chiave,&lt;BR /&gt; text (ARTICOLO) as Articolo;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; CHIAVE,&lt;BR /&gt; ARTICOLO&lt;BR /&gt; FROM M_ORDFORR&lt;BR /&gt; WHERE chiavetes in (select chiave&lt;BR /&gt; from M_ordforT&lt;BR /&gt; where FORNITORE = '$(vFornit)');&lt;/P&gt;&lt;P&gt;Daniela&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 20:10:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149509#M27679</guid>
      <dc:creator />
      <dc:date>2009-07-16T20:10:03Z</dc:date>
    </item>
    <item>
      <title>SQL subquery (SELECT * FROM table WHERE x IN (SELECT....) )</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149510#M27680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all I would test the SQL query.&lt;/P&gt;&lt;P&gt;That should work normally but maybe there is an issue to the variable replacement in the query.&lt;/P&gt;&lt;P&gt;Therefore I would run a Debugger and when the step is on the query, I read the generated query in the middle window. There you should see the exact query Qlikview is trying to run and check if the variable value is well replaced in it.&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;Actually what is the error message ?&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 20:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-subquery-SELECT-FROM-table-WHERE-x-IN-SELECT/m-p/149510#M27680</guid>
      <dc:creator />
      <dc:date>2009-07-16T20:40:45Z</dc:date>
    </item>
  </channel>
</rss>

