<?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 join two tables from different servers? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1721977#M723280</link>
    <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;I have a table in a server and another one in another server i want to join these two when i write the query in sql server every thing is ok but in qlick script i get error:&lt;/P&gt;&lt;P&gt;Table1_label:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;[connection to server1]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Select * from Table1&lt;/P&gt;&lt;P&gt;Table2_label:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;[connection to server2]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Select * from Table2 inne join Table1_label&lt;/P&gt;&lt;P&gt;please let me know how can i do this&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:25:26 GMT</pubDate>
    <dc:creator>irsha</dc:creator>
    <dc:date>2024-11-16T00:25:26Z</dc:date>
    <item>
      <title>how to join two tables from different servers?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1721977#M723280</link>
      <description>&lt;P&gt;Dear all&lt;/P&gt;&lt;P&gt;I have a table in a server and another one in another server i want to join these two when i write the query in sql server every thing is ok but in qlick script i get error:&lt;/P&gt;&lt;P&gt;Table1_label:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;[connection to server1]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Select * from Table1&lt;/P&gt;&lt;P&gt;Table2_label:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;[connection to server2]&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sql&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Select * from Table2 inne join Table1_label&lt;/P&gt;&lt;P&gt;please let me know how can i do this&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1721977#M723280</guid>
      <dc:creator>irsha</dc:creator>
      <dc:date>2024-11-16T00:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to join two tables from different servers?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1721986#M723281</link>
      <description>&lt;P&gt;Load Field from Table1;&lt;/P&gt;&lt;P&gt;Join&lt;/P&gt;&lt;P&gt;Load Field from Table2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joins will be done on any fields with identical names.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 06:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1721986#M723281</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2020-06-25T06:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to join two tables from different servers?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1721994#M723282</link>
      <description>&lt;P&gt;As you are not performing the join in the database you will have to do the join in the QlikView LOAD and not in the SQL SELECT. QlikView performs the join based on field names. The join will be done on all field names that are common between the two Tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;[connection to server1]&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;Table1_label:&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;sql&amp;nbsp;Select&lt;/STRONG&gt;&lt;/FONT&gt; * from Table1&lt;/P&gt;&lt;P&gt;Disconnect;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;[connection to server2]&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;Table2_label:&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;JOIN LOAD * ;&lt;BR /&gt;sql&amp;nbsp;Select&lt;/STRONG&gt;&lt;/FONT&gt; * from Table2 ;&lt;/P&gt;&lt;P&gt;Disconnect;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2020 06:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1721994#M723282</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-06-25T06:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to join two tables from different servers?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1722794#M723283</link>
      <description>&lt;P&gt;Thanks for reply&lt;/P&gt;&lt;P&gt;i could not solve my problem.&lt;/P&gt;&lt;P&gt;here is my complete code. please let me know how can i correct it&lt;/P&gt;&lt;P&gt;thanks so much&lt;/P&gt;&lt;P&gt;[conncet to server1]&lt;/P&gt;&lt;P&gt;Rate:&lt;BR /&gt;SQL&lt;BR /&gt;With cte1 as&lt;BR /&gt;(SELECT c1 as field1 , c5 ,C9,ROW_NUMBER() OVER(partition by c1 order by c11 DESC) rw&lt;BR /&gt;FROM Rate)&lt;BR /&gt;SELECT field1, c5 ,C9 FROM cte1 WHERE rw=1;&lt;/P&gt;&lt;P&gt;[connect to server2]&lt;BR /&gt;Entity1:&lt;BR /&gt;SQL&lt;BR /&gt;SELECT E_Field312 as field1,E_Field403,E_Field4526,E_Field4527,E_Field313 FROM Entity1;&lt;/P&gt;&lt;P&gt;[conncet to serever 3]&lt;BR /&gt;ENTITY7:&lt;BR /&gt;SQL&lt;BR /&gt;SELECT [E_Field741],[E_Field207] as field1,[E_Field3075]&lt;BR /&gt;FROM Entity7;&lt;/P&gt;&lt;P&gt;connect to server4&lt;BR /&gt;left join load *&lt;BR /&gt;resident Rate;&lt;BR /&gt;left join load *&lt;BR /&gt;resident Entity1;&lt;BR /&gt;left join load *&lt;BR /&gt;resident ENTITY7;&lt;BR /&gt;Table:&lt;BR /&gt;sql&lt;/P&gt;&lt;P&gt;WITH CTE AS(&lt;BR /&gt;SELECT&lt;BR /&gt;c9&amp;nbsp;&lt;BR /&gt;, field1&lt;/P&gt;&lt;P&gt;,Entity1.[E_Field4527]&amp;nbsp; as field2,&lt;BR /&gt;Entity1.[E_Field313] AS field3,&lt;BR /&gt;PARSENAME(field1,3) AS field4,&lt;BR /&gt;g.GROOH ,&lt;BR /&gt;Rate.c5&lt;/P&gt;&lt;P&gt;,ROW_NUMBER() OVER(PARTITION BY field2, field3, field1&lt;/P&gt;&lt;P&gt;ORDER BY field1) RW&lt;BR /&gt;FROM EntityD&lt;BR /&gt;LEFT join [dbo].[Customer] on EntityD .CustID=[Customer].cust_ID&lt;BR /&gt;LEFT JOIN Dep_Type_Groups g&lt;BR /&gt;ON g.code=PARSENAME(field1,3)&lt;BR /&gt;LEFT JOIN TimeDetail T&lt;BR /&gt;ON T.TP_ID=E_Field362&lt;BR /&gt;LEFT JOIN TimeDetail T2&lt;BR /&gt;ON T2.TP_ID=E_Field361&lt;BR /&gt;LEFT JOIN TimeDetail T3&lt;BR /&gt;ON T3.TP_ID=E_Field360&lt;/P&gt;&lt;P&gt;where EfectiveDate='1399/03/31'&lt;BR /&gt;AND CONVERT(DATE,ENTITY7.E_Field3075)='2020-06-20'&lt;BR /&gt;)&lt;BR /&gt;select&lt;/P&gt;&lt;P&gt;*&lt;BR /&gt;FROM CTE WHERE [RW]=1 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jun 2020 09:16:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1722794#M723283</guid>
      <dc:creator>irsha</dc:creator>
      <dc:date>2020-06-27T09:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to join two tables from different servers?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1726491#M723284</link>
      <description>&lt;P&gt;So one key piece missing here is the Script/Document log showing what the error is you are receiving, without that, it is difficult to determine where the issue actually is located, at least for me, so here is an article on how to activate that if you do not know, and if you can then attach the log, that may allow someone to provide further information for you.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.qlik.com/articles/000002668" target="_self"&gt;https://support.qlik.com/articles/000002668&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here is a Design Blog post that may be of some use too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/To-Join-or-not-to-Join/ba-p/1463102" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/To-Join-or-not-to-Join/ba-p/1463102&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Brett&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 12:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-join-two-tables-from-different-servers/m-p/1726491#M723284</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-07-09T12:38:49Z</dc:date>
    </item>
  </channel>
</rss>

