<?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 Need help with qlikview syntax to converting SQL nested select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185785#M714087</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tommy,&lt;/P&gt;&lt;P&gt;you can do this with lookup( &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TableABC:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ClientID,SQ#,TeamID,Date&lt;BR /&gt; 51710,2,4,20-JAN-11&lt;BR /&gt; 51710,3,12,20-JAN-11&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;LookupTable:&lt;BR /&gt;LOAD ClientID,&lt;BR /&gt;min(SQ#) as min_SQ#&lt;BR /&gt;Resident TableABC&lt;BR /&gt;Group By ClientID;&lt;BR /&gt;&lt;BR /&gt;ResultTable:&lt;BR /&gt;NOCONCATENATE LOAD *&lt;BR /&gt;Resident TableABC&lt;BR /&gt;WHERE ClientID = 51710 AND SQ#=Lookup('min_SQ#', 'ClientID', ClientID, 'LookupTable');&lt;BR /&gt;&lt;BR /&gt;Drop Table TableABC;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Mar 2011 22:25:32 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2011-03-28T22:25:32Z</dc:date>
    <item>
      <title>Need help with qlikview syntax to converting SQL nested select</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185784#M714086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone help me convert this sql statement to qlikview script? I have these 2 records in qvd but not able to find the appropriate qlikview syntax to retrieve the record with smaller SQ#. Example below.&lt;/P&gt;&lt;P&gt;SELECT * FROM TableABC WHERE ClientID = 51710 AND SQ#=(select MIN(SQ#) from TableABC where ClientID=51710)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TableABC&lt;/P&gt;&lt;P&gt;ClientID SQ# TeamID Date&lt;/P&gt;&lt;P&gt;51710 2 4 20-JAN-11&lt;/P&gt;&lt;P&gt;51710 3 12 20-JAN-11&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 20:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185784#M714086</guid>
      <dc:creator />
      <dc:date>2011-03-28T20:20:15Z</dc:date>
    </item>
    <item>
      <title>Need help with qlikview syntax to converting SQL nested select</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185785#M714087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tommy,&lt;/P&gt;&lt;P&gt;you can do this with lookup( &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;TableABC:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; ClientID,SQ#,TeamID,Date&lt;BR /&gt; 51710,2,4,20-JAN-11&lt;BR /&gt; 51710,3,12,20-JAN-11&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;LookupTable:&lt;BR /&gt;LOAD ClientID,&lt;BR /&gt;min(SQ#) as min_SQ#&lt;BR /&gt;Resident TableABC&lt;BR /&gt;Group By ClientID;&lt;BR /&gt;&lt;BR /&gt;ResultTable:&lt;BR /&gt;NOCONCATENATE LOAD *&lt;BR /&gt;Resident TableABC&lt;BR /&gt;WHERE ClientID = 51710 AND SQ#=Lookup('min_SQ#', 'ClientID', ClientID, 'LookupTable');&lt;BR /&gt;&lt;BR /&gt;Drop Table TableABC;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 22:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185785#M714087</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2011-03-28T22:25:32Z</dc:date>
    </item>
    <item>
      <title>Need help with qlikview syntax to converting SQL nested select</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185786#M714088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;Very good solution, because do match in-memory&lt;/P&gt;&lt;P&gt;Only for find excellence this is my offer, with aggr about key con 2 or more parts &amp;amp; omitt hardcode.&lt;/P&gt;&lt;P&gt;Good luck, Luis.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/2627.schema.jpg"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/2627.schema.jpg" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 23:16:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185786#M714088</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-03-28T23:16:09Z</dc:date>
    </item>
    <item>
      <title>Need help with qlikview syntax to converting SQL nested select</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185787#M714089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;Thanks so much! It worked perfectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 17:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-qlikview-syntax-to-converting-SQL-nested-select/m-p/185787#M714089</guid>
      <dc:creator />
      <dc:date>2011-03-29T17:23:11Z</dc:date>
    </item>
  </channel>
</rss>

