<?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: SQL SELECT Concat issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647280#M669615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try casting it as a varchar instead of char and supply an argument that is matches the max expected length of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if you use varchar(20) and it only takes up 3 digits, it will drop the extras. I think it may be the lack of length argument that is causing your problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 15:07:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-16T15:07:33Z</dc:date>
    <item>
      <title>SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647273#M669608</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 have the following piece of code for extracting from the DB and it works ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="CAST.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69099_CAST.png" style="width: 620px; height: 90px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it does not concat the "trx-no" within the string and I get no error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why I can't join the trx-no to the rest of the string?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647273#M669608</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-10-16T14:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647274#M669609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you sure that trx-no is not null or empty?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647274#M669609</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-16T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647275#M669610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was about to suggest bringing throught that field (with CAST statement) on its own to see if indeed that was the situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:58:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647275#M669610</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2014-10-16T14:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647276#M669611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try replacing the double quotes in your SQL statement with open and close square brackets. The SQL engine could be interpreting your double quotes as string values rather than column names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, try copying and pasting everything after the SQL keyword into SQL Server Management Studio and running directly against the DB. Better error feedback that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 14:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647276#M669611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T14:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647277#M669612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am sure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trx-no is always available, no nulls or empty data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:03:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647277#M669612</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-10-16T15:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647278#M669613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that but no luck I'm afraid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647278#M669613</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-10-16T15:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647279#M669614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;trx-no loads no problem with all values, however when I change to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAST("trx-no" AS CHAR) AS trx-no&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All values are blank??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe I'll try CONVERT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:07:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647279#M669614</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-10-16T15:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647280#M669615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try casting it as a varchar instead of char and supply an argument that is matches the max expected length of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even if you use varchar(20) and it only takes up 3 digits, it will drop the extras. I think it may be the lack of length argument that is causing your problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647280#M669615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T15:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647281#M669616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... what about your query if you adda anew column trx-no?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it visible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is anoher solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same with Qlik so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load ..;&lt;/P&gt;&lt;P&gt;Select&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647281#M669616</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-16T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647282#M669617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you bring it through without the CAST and make the concatenation in a preceding load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: As Alessandro says &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647282#M669617</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2014-10-16T15:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647283#M669618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent that fixes the issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647283#M669618</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-10-16T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL SELECT Concat issue</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647284#M669619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;final result is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warehouse +&lt;/P&gt;&lt;P&gt;customer +&lt;/P&gt;&lt;P&gt;product +&lt;/P&gt;&lt;P&gt;"trx-by" + &lt;/P&gt;&lt;P&gt;CAST("trx-no" AS VARCHAR(20)) +&lt;/P&gt;&lt;P&gt;CAST("item-number" AS CHAR) +&lt;/P&gt;&lt;P&gt;CAST("line-number" AS CHAR)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS TEST&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 15:22:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-SELECT-Concat-issue/m-p/647284#M669619</guid>
      <dc:creator>rustyfishbones</dc:creator>
      <dc:date>2014-10-16T15:22:01Z</dc:date>
    </item>
  </channel>
</rss>

