<?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 How to add empty column while concatenating two tables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-empty-column-while-concatenating-two-tables/m-p/587791#M680197</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;Let me introduce Myself, I am Srujan working as a test analyst in Newcastle. I started learning Qlikview as I was fascinated with the data visualization capabilities the tool had. I do not have any understanding of BI concepts given my area of expertise is QA. But I have a fair bit of idea on SQL. I am new to Qlikview &amp;amp; BI domain as well. I hope to learn by asking questions and also referring to previously answered questions and of course with the good support of the Qlik Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am trying to concatenate two tables Customer and Correspondence and the tables after that.&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;While trying to create the table 'Correspondence' in which I added a new column 'DistributionType' which would be null in this table I am getting the following error "Error msg: "SQL##f - SqlState: 37000, ErrorCode: 4294967095, ErrorMsg: [Informix][Informix ODBC Driver][Informix]A syntax error has occurred."&lt;/P&gt;&lt;P&gt;If I comment out Line 22, the script moves forward and creates the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please guide me in resolving this issue?&lt;/P&gt;&lt;P&gt;Your help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_139901786361985 jive_macro_code" jivemacro_uid="_139901786361985" modifiedtitle="true"&gt;
&lt;P&gt;ODBC CONNECT TO Informix1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Customer Table &lt;/P&gt;
&lt;P&gt;Customer:&lt;/P&gt;
&lt;P&gt;SQL SELECT customer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; fund_id&lt;/P&gt;
&lt;P&gt;&amp;nbsp; sex,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; dte_on,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_given,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; birth_dte&lt;/P&gt;
&lt;P&gt;FROM whics.tw202;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Manual Correspondence Table&lt;/P&gt;
&lt;P&gt;Correspondence:&lt;/P&gt;
&lt;P&gt;SQL SELECT recipient as customer, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dte_letter as process_dte_tw267_Manual,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; letter_no as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; suburb,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Manual' as TriggerType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as DistributionType, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw267' as DataSource&lt;/P&gt;
&lt;P&gt;FROM whics.tw267&lt;/P&gt;
&lt;P&gt;WHERE dte_letter BETWEEN '01-01-2014' AND '27-04-2014';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Vegas Correspondence Table//&lt;/P&gt;
&lt;P&gt;Concatenate (Correspondence)&lt;/P&gt;
&lt;P&gt;SQL SELECT client,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer, // replace with unique customer key linking field&lt;/P&gt;
&lt;P&gt;//&amp;nbsp; process_dte as process_dte_tw289_Vegas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; process_dte,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; corresp_code as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; contact_meth,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fund_id as fund_id_tw289_Vegas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as TriggerType, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Fuji' as DistributionType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw289' as DataSource&lt;/P&gt;
&lt;P&gt;FROM whics.tw289&lt;/P&gt;
&lt;P&gt;WHERE process_dte BETWEEN '01-01-2014' AND '27-04-2014';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Emails sent Table//&lt;/P&gt;
&lt;P&gt;Concatenate (Correspondence) &lt;/P&gt;
&lt;P&gt;Load *;&lt;/P&gt;
&lt;P&gt;SQL SELECT process_dte,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipient as customer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //fund_id as fund_id_tw289e_Email,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; corresp_code as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as TriggerType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as DistributionType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw289e' as DataSource&lt;/P&gt;
&lt;P&gt;FROM whics.tw289e&lt;/P&gt;
&lt;P&gt;WHERE process_dte BETWEEN '01-01-2014' AND '27-04-2014';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Letter Description Table//&lt;/P&gt;
&lt;P&gt;tw262_LetterDescription:&lt;/P&gt;
&lt;P&gt;SQL SELECT letter_desc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; letter_no as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fund_id as fund_id_tw262_LetterDescription&lt;/P&gt;
&lt;P&gt;FROM whics.tw262;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 08:16:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-02T08:16:13Z</dc:date>
    <item>
      <title>How to add empty column while concatenating two tables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-empty-column-while-concatenating-two-tables/m-p/587791#M680197</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;Let me introduce Myself, I am Srujan working as a test analyst in Newcastle. I started learning Qlikview as I was fascinated with the data visualization capabilities the tool had. I do not have any understanding of BI concepts given my area of expertise is QA. But I have a fair bit of idea on SQL. I am new to Qlikview &amp;amp; BI domain as well. I hope to learn by asking questions and also referring to previously answered questions and of course with the good support of the Qlik Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am trying to concatenate two tables Customer and Correspondence and the tables after that.&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;While trying to create the table 'Correspondence' in which I added a new column 'DistributionType' which would be null in this table I am getting the following error "Error msg: "SQL##f - SqlState: 37000, ErrorCode: 4294967095, ErrorMsg: [Informix][Informix ODBC Driver][Informix]A syntax error has occurred."&lt;/P&gt;&lt;P&gt;If I comment out Line 22, the script moves forward and creates the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone please guide me in resolving this issue?&lt;/P&gt;&lt;P&gt;Your help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My script looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_139901786361985 jive_macro_code" jivemacro_uid="_139901786361985" modifiedtitle="true"&gt;
&lt;P&gt;ODBC CONNECT TO Informix1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Customer Table &lt;/P&gt;
&lt;P&gt;Customer:&lt;/P&gt;
&lt;P&gt;SQL SELECT customer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; fund_id&lt;/P&gt;
&lt;P&gt;&amp;nbsp; sex,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; dte_on,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_given,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; birth_dte&lt;/P&gt;
&lt;P&gt;FROM whics.tw202;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Manual Correspondence Table&lt;/P&gt;
&lt;P&gt;Correspondence:&lt;/P&gt;
&lt;P&gt;SQL SELECT recipient as customer, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dte_letter as process_dte_tw267_Manual,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; letter_no as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; suburb,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Manual' as TriggerType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as DistributionType, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw267' as DataSource&lt;/P&gt;
&lt;P&gt;FROM whics.tw267&lt;/P&gt;
&lt;P&gt;WHERE dte_letter BETWEEN '01-01-2014' AND '27-04-2014';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Vegas Correspondence Table//&lt;/P&gt;
&lt;P&gt;Concatenate (Correspondence)&lt;/P&gt;
&lt;P&gt;SQL SELECT client,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer, // replace with unique customer key linking field&lt;/P&gt;
&lt;P&gt;//&amp;nbsp; process_dte as process_dte_tw289_Vegas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; process_dte,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; corresp_code as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; contact_meth,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fund_id as fund_id_tw289_Vegas,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as TriggerType, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Fuji' as DistributionType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw289' as DataSource&lt;/P&gt;
&lt;P&gt;FROM whics.tw289&lt;/P&gt;
&lt;P&gt;WHERE process_dte BETWEEN '01-01-2014' AND '27-04-2014';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Emails sent Table//&lt;/P&gt;
&lt;P&gt;Concatenate (Correspondence) &lt;/P&gt;
&lt;P&gt;Load *;&lt;/P&gt;
&lt;P&gt;SQL SELECT process_dte,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipient as customer,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //fund_id as fund_id_tw289e_Email,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; corresp_code as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as TriggerType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; null() as DistributionType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw289e' as DataSource&lt;/P&gt;
&lt;P&gt;FROM whics.tw289e&lt;/P&gt;
&lt;P&gt;WHERE process_dte BETWEEN '01-01-2014' AND '27-04-2014';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Letter Description Table//&lt;/P&gt;
&lt;P&gt;tw262_LetterDescription:&lt;/P&gt;
&lt;P&gt;SQL SELECT letter_desc,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; letter_no as CommType,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fund_id as fund_id_tw262_LetterDescription&lt;/P&gt;
&lt;P&gt;FROM whics.tw262;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 08:16:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-empty-column-while-concatenating-two-tables/m-p/587791#M680197</guid>
      <dc:creator />
      <dc:date>2014-05-02T08:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to add empty column while concatenating two tables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-empty-column-while-concatenating-two-tables/m-p/587792#M680198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL doesn't understand this function, but QV does.&amp;nbsp; Use preceding load, and move this function to the QV load part:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipient as customer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dte_letter as process_dte_tw267_Manual, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; letter_no as CommType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; suburb, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Manual' as TriggerType, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp; null() as DistributionType,&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw267' as DataSource &lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; recipient,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dte_letter, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; letter_no, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_1, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; addr_2, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; suburb, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Manual', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'tw267'&lt;/P&gt;&lt;P&gt;FROM whics.tw267 &lt;/P&gt;&lt;P&gt;WHERE dte_letter BETWEEN '01-01-2014' AND '27-04-2014';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: fixed some mistypings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 18:10:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-empty-column-while-concatenating-two-tables/m-p/587792#M680198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-02T18:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add empty column while concatenating two tables?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-empty-column-while-concatenating-two-tables/m-p/587793#M680199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Null function Null() is not available in Sql. Replace Null() by Null keyword&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="op" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #808080; background-color: #f8f8f8;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="keyword" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #006699; background-color: #f8f8f8;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000; background-color: #f8f8f8;"&gt; DistributionType,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 May 2014 11:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-empty-column-while-concatenating-two-tables/m-p/587793#M680199</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-05-03T11:06:06Z</dc:date>
    </item>
  </channel>
</rss>

