<?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 Nested Select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130608#M636249</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;Please help me with the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In need to select values from SAP table based on field values from another SAP table, i.e. select from select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script part underneath in bold is the part I am needing assistance with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;[VBAK]: //Sales Document Header Data&lt;/P&gt;&lt;P&gt;LOAD VBELN AS [Sales Document],&lt;/P&gt;&lt;P&gt;ERNAM AS [Created by],&lt;/P&gt;&lt;P&gt;AUDAT AS [Document Date],&lt;/P&gt;&lt;P&gt;KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;AUDAT &amp;gt; '20160501'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN ([VBAK])&lt;/P&gt;&lt;P&gt;LOAD KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P&gt;KSCHL AS [Condition type],&lt;/P&gt;&lt;P&gt;KBETR AS [Condition rate]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;KNUMV,&lt;/P&gt;&lt;P&gt;KSCHL,&lt;/P&gt;&lt;P&gt;KBETR&lt;/P&gt;&lt;P&gt;FROM KONV&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KNUMV = &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Load [Doc. condition no.],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident VBAK);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field KNUMV is an indexed field, if I only use a left join the query runs for hours instead of seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2016 07:12:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-05-24T07:12:58Z</dc:date>
    <item>
      <title>Nested Select</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130608#M636249</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;Please help me with the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In need to select values from SAP table based on field values from another SAP table, i.e. select from select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script part underneath in bold is the part I am needing assistance with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;[VBAK]: //Sales Document Header Data&lt;/P&gt;&lt;P&gt;LOAD VBELN AS [Sales Document],&lt;/P&gt;&lt;P&gt;ERNAM AS [Created by],&lt;/P&gt;&lt;P&gt;AUDAT AS [Document Date],&lt;/P&gt;&lt;P&gt;KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P&gt;where &lt;/P&gt;&lt;P&gt;AUDAT &amp;gt; '20160501'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN ([VBAK])&lt;/P&gt;&lt;P&gt;LOAD KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P&gt;KSCHL AS [Condition type],&lt;/P&gt;&lt;P&gt;KBETR AS [Condition rate]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;KNUMV,&lt;/P&gt;&lt;P&gt;KSCHL,&lt;/P&gt;&lt;P&gt;KBETR&lt;/P&gt;&lt;P&gt;FROM KONV&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KNUMV = &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(Load [Doc. condition no.],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident VBAK);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;//////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field KNUMV is an indexed field, if I only use a left join the query runs for hours instead of seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 07:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130608#M636249</guid>
      <dc:creator />
      <dc:date>2016-05-24T07:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Select</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130609#M636250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mome,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;[VBAK]: //Sales Document Header Data&lt;/P&gt;&lt;P&gt;LOAD VBELN AS [Sales Document],&lt;/P&gt;&lt;P&gt;ERNAM AS [Created by],&lt;/P&gt;&lt;P&gt;AUDAT AS [Document Date],&lt;/P&gt;&lt;P&gt;KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;AUDAT &amp;gt; '20160501'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LEFT JOIN ([VBAK])&lt;/P&gt;&lt;P&gt;LOAD KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P&gt;KSCHL AS [Condition type],&lt;/P&gt;&lt;P&gt;KBETR AS [Condition rate];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Temp:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load Concat(Distinct Chr(39) &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt;[Doc. condition no.]&lt;/SPAN&gt; &amp;amp; Chr(39),', ') as List resident VBAK;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vList = Peek('List', 0, 'Temp');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Drop table Temp;&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SQL SELECT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;KNUMV,&lt;/P&gt;&lt;P&gt;KSCHL,&lt;/P&gt;&lt;P&gt;KBETR&lt;/P&gt;&lt;P&gt;FROM KONV&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Match(KNUMV, $(vList));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;//////////////////////////////////////////////////////////&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130609#M636250</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-05-24T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Select</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130610#M636251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[VBAK]: //Sales Document Header Data&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD VBELN AS [Sales Document],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ERNAM AS [Created by],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AUDAT AS [Document Date],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AUDAT &amp;gt; '20160501';&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;EM style="font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;Temp:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;Load &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Distinct &lt;/EM&gt; Concat(Chr(39) &amp;amp; &lt;SPAN style="font-weight: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Doc. condition no.]&lt;/SPAN&gt; &amp;amp; Chr(39),', ') as List &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;resident VBAK;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;LET vList = Peek('List', 0, 'Temp');&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;Drop table Temp;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LEFT JOIN ([VBAK])&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KSCHL AS [Condition type],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KBETR AS [Condition rate];&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;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SQL SELECT&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;KNUMV,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KSCHL,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KBETR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM KONV&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Match(KNUMV, $(vList));&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-size: 10pt; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130610#M636251</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-24T08:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Select</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130611#M636252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil &amp;amp; Kushal, thank you for the feedback, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you have similar solutions, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried both in the exact format you send them, but I get the same script error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;P&gt;////////////////////////////////////////////&lt;/P&gt;&lt;P&gt;/QTQVC/OPEN_STREAM failed after 00:00:00 Key = SQL_ERROR (ID:00 Type:E Number:001 "(" is invalid here (due to grammar). contains an invalid character or it is a keyword. (It might be possible to escape it using "!"). Or a space is missing or there is one space too many.)&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;KNUMV,&lt;/P&gt;&lt;P&gt;KSCHL,&lt;/P&gt;&lt;P&gt;KBETR&lt;/P&gt;&lt;P&gt;FROM KONV&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;Match (KNUMV, '0117978213', '0117978214', '0117979191')&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;////////////////////////////////////////////&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Am I making an obvious syntax error or may it be that SAP Connector doesn't recognize this command?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 08:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130611#M636252</guid>
      <dc:creator />
      <dc:date>2016-05-24T08:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Select</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130612#M636253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have replaced the statement L&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;oad &lt;EM style="font-weight: inherit;"&gt;Distinct &lt;/EM&gt;Concat(Chr(39) &amp;amp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Doc. condition no.]&lt;/SPAN&gt; &amp;amp; Chr(39),', ') as List&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;with&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Distinct Concat('KNUMV = ' &amp;amp; Chr(39) &amp;amp; [Doc. condition no.] &amp;amp; Chr(39),' or ') as List &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 09:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130612#M636253</guid>
      <dc:creator />
      <dc:date>2016-05-24T09:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Select</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130613#M636254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Morne,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ah!! I forgot to see the SQL statement. Match is a Qlikview function and it won't work in Sql script. Glad that you found the solution!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You can try like below&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-size: 14px; font-family: Helvetica, sans-serif;"&gt;&lt;EM&gt;Where &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;KNUMV&lt;/EM&gt;&lt;/SPAN&gt; IN (&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;$(vList));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 10:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130613#M636254</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-05-24T10:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Nested Select</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130614#M636255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;[VBAK]: //Sales Document Header Data&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD VBELN AS [Sales Document],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ERNAM AS [Created by],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AUDAT AS [Document Date],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;AUDAT &amp;gt; '20160501';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit;"&gt;Temp:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Load &lt;EM style="font-weight: inherit;"&gt;Distinct &lt;/EM&gt;Concat(Chr(39) &amp;amp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[Doc. condition no.]&lt;/SPAN&gt; &amp;amp; Chr(39),', ') as List&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;resident VBAK;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;LET vList = Peek('List', 0, 'Temp');&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit;"&gt;Drop table Temp;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LEFT JOIN ([VBAK])&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD KNUMV AS [Doc. condition no.],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KSCHL AS [Condition type],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KBETR AS [Condition rate];&lt;/P&gt;&lt;P&gt;&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="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;SQL SELECT&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;KNUMV,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KSCHL,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;KBETR&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM KONV&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;KNUMV in (&lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13px; font-style: inherit;"&gt;$(vList))&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 10:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-Select/m-p/1130614#M636255</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2016-05-24T10:07:13Z</dc:date>
    </item>
  </channel>
</rss>

