<?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: Basic SQL Link Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371398#M845117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the CONCATENATE keyword to append all rows from the second table to the first table, regardless whether the fields in table 2 also exist in table 1, and if they don't they will have a null value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD date1 as DateField,&lt;/P&gt;&lt;P&gt;id as ID,&lt;/P&gt;&lt;P&gt;'Table1' as Source;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM gbakes1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table1) LOAD id as ID,&lt;/P&gt;&lt;P&gt;date2 AS DateField,&lt;/P&gt;&lt;P&gt;'Table2' as Source;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM gbakes2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field "Source" would help you with set analysis or conditions in charts to select from which table do you actually want to select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 15:36:38 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2017-04-10T15:36:38Z</dc:date>
    <item>
      <title>Basic SQL Link Table</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371396#M845115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Im a beginner at SQL and I'm having difficulty just making a basic link table from 2 separate tables. My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="s1" style="font-size: 10pt;"&gt;ODBC&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt;"&gt;&lt;STRONG&gt;CONNECT&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt;"&gt;TO&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; xxx.xxxx.xxx;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt; &lt;BR /&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;date1&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="s2"&gt;id&lt;/SPAN&gt;;&lt;BR /&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; SELECT *&lt;BR /&gt; FROM gbakes1;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="s2"&gt;id&lt;/SPAN&gt;,&lt;BR /&gt; date2;&lt;BR /&gt; &lt;SPAN class="s1"&gt;&lt;STRONG&gt;SQL&lt;/STRONG&gt;&lt;/SPAN&gt; SELECT *&lt;BR /&gt; FROM gbakes2;&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;This loads 2 tables linked by the unique key (id) I'd like them to be concatenated into one table. I'm not sure if I can use the correct terminology to describe this but basically there are as many id fields as date1 fields but not as many date2 fields as id fields, so if the missing date2 fields could just be put in as null that would be great.&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;Thanks so much in advance! Im sure the solution is really simple but whenever I try look something up the explanations and examples are really complex&lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371396#M845115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Basic SQL Link Table</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371397#M845116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use like to get single table in DM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;date1&lt;STRONG&gt; as DateField&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;id &lt;STRONG&gt;as ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; SELECT *&lt;/SPAN&gt;&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;FROM gbakes1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;id &lt;STRONG&gt;as ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&lt;/SPAN&gt;&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;date2&lt;STRONG&gt; as &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;DateField&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1" style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; SELECT *&lt;/SPAN&gt;&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;FROM gbakes2;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 15:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371397#M845116</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-10T15:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Basic SQL Link Table</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371398#M845117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the CONCATENATE keyword to append all rows from the second table to the first table, regardless whether the fields in table 2 also exist in table 1, and if they don't they will have a null value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD date1 as DateField,&lt;/P&gt;&lt;P&gt;id as ID,&lt;/P&gt;&lt;P&gt;'Table1' as Source;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM gbakes1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE (Table1) LOAD id as ID,&lt;/P&gt;&lt;P&gt;date2 AS DateField,&lt;/P&gt;&lt;P&gt;'Table2' as Source;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM gbakes2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field "Source" would help you with set analysis or conditions in charts to select from which table do you actually want to select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 15:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371398#M845117</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2017-04-10T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Basic SQL Link Table</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371399#M845118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel and Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both for your answers, I tested and used the 2 methods and actually I found each one useful for different things. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 08:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371399#M845118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-12T08:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Basic SQL Link Table</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371400#M845119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it mean, You got answer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 08:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371400#M845119</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-12T08:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Basic SQL Link Table</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371401#M845120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I tried to select both for correct answer, but after I clicked one there was no longer the option for another.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 09:19:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371401#M845120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-12T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Basic SQL Link Table</title>
      <link>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371402#M845121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Might it would help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 10:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Basic-SQL-Link-Table/m-p/1371402#M845121</guid>
      <dc:creator>dathathreya</dc:creator>
      <dc:date>2017-04-12T10:12:47Z</dc:date>
    </item>
  </channel>
</rss>

