<?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: Concatenate in the sql select in the script of qlikview from SAP CAR table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1821531#M1213570</link>
    <description>&lt;P&gt;Hello PiEye,&lt;/P&gt;&lt;P&gt;I know how to concatenate in the script of load expression in qlikview.&lt;/P&gt;&lt;P&gt;I want to do this in the sap select sql with the sap connector in order to avoid the large number of data.&lt;/P&gt;&lt;P&gt;Have anyone an idea how can i do this ?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 17:24:11 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2021-07-12T17:24:11Z</dc:date>
    <item>
      <title>Concatenate in the sql select in the script of qlikview from SAP CAR table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1820727#M1213466</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following script&lt;/P&gt;&lt;P&gt;select BUSINESSDAYDATE&lt;BR /&gt;RETAILSTOREID&lt;BR /&gt;RETAILTYPECODE&lt;BR /&gt;TRANSINDEX&lt;BR /&gt;SUM(REDUCTIONAMOUNT)&lt;BR /&gt;from /POSDW/TLOGF&lt;BR /&gt;where businessdaydate &amp;gt; '20210101' and retailtypecode &amp;lt;&amp;gt; ' ' AND CONCAT(TASK_CANCELED, CHANGEFLAG) &amp;lt;&amp;gt; 'X '&lt;BR /&gt;GROUP BY BUSINESSDAYDATE&lt;BR /&gt;RETAILSTOREID&lt;BR /&gt;RETAILTYPECODE&lt;BR /&gt;TRANSINDEX;&lt;/P&gt;&lt;P&gt;from a table of SAP CAR. In the where i want to concatenate two fields in order to have a combination of&amp;nbsp; X and blank.&lt;/P&gt;&lt;P&gt;I give the expression&amp;nbsp;CONCAT(TASK_CANCELED, CHANGEFLAG) , i give the expression&amp;nbsp;TASK_CANCELED || CHANGEFLAG, i give the expression&amp;nbsp;TASK_CANCELED &amp;amp;&amp;amp; CHANGEFLAG and the script fails.&lt;/P&gt;&lt;P&gt;Have someone an idea how can i write this in order to have the result i want ;&lt;/P&gt;&lt;P&gt;Thank you in avdanced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 12:23:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1820727#M1213466</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2021-07-08T12:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in the sql select in the script of qlikview from SAP CAR table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1820939#M1213493</link>
      <description>&lt;P&gt;Hi GeoGou&lt;/P&gt;&lt;P&gt;Are you hoping to solve this in SAP or in Qlik?&lt;/P&gt;&lt;P&gt;In Qlik, it is fairly simple - you can achieve this with an '&amp;amp;'. Simplest way to apply this to a SQL load is to precede it with a load statement and put the where clause there:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE&amp;nbsp;TASK_CANCELED &amp;amp; CHANGEFLAG 'X '&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;select &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;TASK_CANCELED&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CHANGEFLAG&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;BUSINESSDAYDATE&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RETAILSTOREID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;RETAILTYPECODE.....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However I appreciate that the SQL is limited for a reason. It looks like&amp;nbsp; a SAP issue, rather than Qlik. What error message are you getting?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See if you can check first the Data Types of &lt;/SPAN&gt;&lt;SPAN&gt;CHANGEFLAG&amp;nbsp; and&amp;nbsp;TASK_CANCELED&amp;nbsp;, if they are different, or numeric then this will not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, you are checking that the concatenation of them both &amp;lt;&amp;gt;'X'. Since this is one character, then logically you could also test for&amp;nbsp; ( CHANGEFLAG&amp;nbsp;&amp;lt;&amp;gt; 'X&amp;nbsp; AND TASK_CANCELED &amp;lt;&amp;gt; 'X') .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Hope these suggestions help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pi&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:58:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1820939#M1213493</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-09T08:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in the sql select in the script of qlikview from SAP CAR table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1820940#M1213494</link>
      <description>&lt;P&gt;Apologies, the above preceeding load statement should read &amp;lt;&amp;gt; 'X':&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&amp;nbsp;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE&amp;nbsp;TASK_CANCELED &amp;amp; CHANGEFLAG &lt;STRONG&gt;&amp;lt;&amp;gt;&lt;/STRONG&gt; 'X '&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 08:59:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1820940#M1213494</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-09T08:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in the sql select in the script of qlikview from SAP CAR table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1821531#M1213570</link>
      <description>&lt;P&gt;Hello PiEye,&lt;/P&gt;&lt;P&gt;I know how to concatenate in the script of load expression in qlikview.&lt;/P&gt;&lt;P&gt;I want to do this in the sap select sql with the sap connector in order to avoid the large number of data.&lt;/P&gt;&lt;P&gt;Have anyone an idea how can i do this ?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:24:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1821531#M1213570</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2021-07-12T17:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate in the sql select in the script of qlikview from SAP CAR table</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1821617#M1213578</link>
      <description>&lt;P&gt;Hi GeoGou, I did offer some other suggestions, not just Qlik.&amp;nbsp;&lt;/P&gt;&lt;P&gt;As above, either concat(..,....) or || should work. we need more information to troubleshoot why this isn't working.&lt;/P&gt;&lt;P&gt;It could be many things - maybe one of the strings are nulll, or maybe it is not a string. can you check the data types?&lt;/P&gt;&lt;P&gt;Are you are getting an error message? This would help pinpoint the issue.&lt;/P&gt;&lt;P&gt;Pi&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 06:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-in-the-sql-select-in-the-script-of-qlikview-from-SAP/m-p/1821617#M1213578</guid>
      <dc:creator>PiEye</dc:creator>
      <dc:date>2021-07-13T06:30:42Z</dc:date>
    </item>
  </channel>
</rss>

