<?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: Use CONCAT() value in the SQL statement (where...) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-CONCAT-value-in-the-SQL-statement-where/m-p/835545#M293920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I was stupid. It was solved by this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Scope =Peek('Orders',0);&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 ...... FROM PUR.ORDERS WHERE Orders in ($(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Scope&lt;/SPAN&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 15:01:44 GMT</pubDate>
    <dc:creator>atsushi_saijo</dc:creator>
    <dc:date>2015-05-11T15:01:44Z</dc:date>
    <item>
      <title>Use CONCAT() value in the SQL statement (where...)</title>
      <link>https://community.qlik.com/t5/QlikView/Use-CONCAT-value-in-the-SQL-statement-where/m-p/835544#M293919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to use the SQL SELECT statement, but wish to limit record based on the CONCAT() value. &lt;/P&gt;&lt;P&gt;However, I am at lost how I do it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say, we have such table: &lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="149" style="border: 1px solid #000000; width: 60px; height: 144px;" width="58"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Orders&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;aa&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;bb&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;cc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;dd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;ee&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, CONCAT(Chr(39)&amp;amp;Orders&amp;amp;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Chr(39)&lt;/SPAN&gt;,',') will produce a string: '&lt;SPAN style="text-decoration: underline;"&gt;aa','bb','cc','dd','ee'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I would like to make a SELECT query on the mainframe so that only these 5 orders are selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ...... FROM PUR.ORDERS WHERE '&lt;SPAN style="font-size: 13.3333330154419px; text-decoration: underline;"&gt;aa','bb','cc','dd','ee'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how could I pass '&lt;SPAN style="font-size: 13.3333330154419px; text-decoration: underline;"&gt;aa','bb','cc','dd','ee'&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;. into this SQL statement? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Do I have to SELECT once with a massive data, then narrow the record in the pattern of preceding load?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate for your feedback in advance. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 14:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-CONCAT-value-in-the-SQL-statement-where/m-p/835544#M293919</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2015-05-11T14:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use CONCAT() value in the SQL statement (where...)</title>
      <link>https://community.qlik.com/t5/QlikView/Use-CONCAT-value-in-the-SQL-statement-where/m-p/835545#M293920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I was stupid. It was solved by this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let Scope =Peek('Orders',0);&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 ...... FROM PUR.ORDERS WHERE Orders in ($(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Scope&lt;/SPAN&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 15:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-CONCAT-value-in-the-SQL-statement-where/m-p/835545#M293920</guid>
      <dc:creator>atsushi_saijo</dc:creator>
      <dc:date>2015-05-11T15:01:44Z</dc:date>
    </item>
  </channel>
</rss>

