<?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: Replicating a join that is done in MS-SQL (T-SQL) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1918393#M75521</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your input.&lt;/P&gt;
&lt;P&gt;Is it possible that we should have&amp;nbsp;&lt;SPAN&gt;left join(Input) instead of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;left join(TABLE_J)?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 07:33:48 GMT</pubDate>
    <dc:creator>bilalgunay</dc:creator>
    <dc:date>2022-04-14T07:33:48Z</dc:date>
    <item>
      <title>Replicating a join that is done in MS-SQL (T-SQL)</title>
      <link>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1917861#M75498</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;below is a code piece written in Microsoft SQL Server. It is (with SQL) a relatively simple join, but I wanted to ask for your help if and how this can be done in Qlik script. The data is in QVDs already. I just pushed it to SQL tables so that I can do this join. I can obviously create a view and then load that back to Qlik, but it would be only a workaround.&lt;/P&gt;
&lt;P&gt;In the select there is a Duration calculated, with nested if's. I can do that part.&lt;/P&gt;
&lt;P&gt;If more info needed, do not hesitate to comment. Thanks in advance.&lt;/P&gt;
&lt;P&gt;FROM TABLE_J as J&lt;BR /&gt;left join TABLE_C as C&lt;BR /&gt;on convert(date, C.[Date]) &amp;gt;= convert(date,J.[History_Start_Time])&lt;BR /&gt;and convert(date, C.[Date]) &amp;lt;= case when J.[Phase] = 'Done' then convert(date,J.[History_Start_Time]) else convert(date,isnull(J.[History_End_Time],getdate())) end&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 08:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1917861#M75498</guid>
      <dc:creator>bilalgunay</dc:creator>
      <dc:date>2022-04-13T08:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a join that is done in MS-SQL (T-SQL)</title>
      <link>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1918282#M75514</link>
      <description>&lt;P&gt;Not sure but below script might help you to kickstart -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Input:&lt;BR /&gt;Load * &lt;BR /&gt;from TABLE_J;&lt;/P&gt;
&lt;P&gt;left join(TABLE_J)&lt;BR /&gt;Load *&lt;BR /&gt;from TABLE_C;&lt;/P&gt;
&lt;P&gt;noconcatenate&lt;/P&gt;
&lt;P&gt;Final:&lt;BR /&gt;Load *&lt;BR /&gt;resident Input&lt;BR /&gt;Where C.[Date] &amp;gt;= [History_Start_Time]&lt;BR /&gt;and (&lt;BR /&gt;(C.[Date] &amp;lt;= [History_Start_Time] and [Phase] = 'Done') &lt;BR /&gt;OR C.[Date]) &amp;lt;= coalesce([History_End_Time], today(1))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Drop Table Input;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 22:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1918282#M75514</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-04-13T22:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a join that is done in MS-SQL (T-SQL)</title>
      <link>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1918393#M75521</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your input.&lt;/P&gt;
&lt;P&gt;Is it possible that we should have&amp;nbsp;&lt;SPAN&gt;left join(Input) instead of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;left join(TABLE_J)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 07:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1918393#M75521</guid>
      <dc:creator>bilalgunay</dc:creator>
      <dc:date>2022-04-14T07:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Replicating a join that is done in MS-SQL (T-SQL)</title>
      <link>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1918452#M75532</link>
      <description>&lt;P&gt;My bad, you are right, it should be left join(Input).&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 09:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Replicating-a-join-that-is-done-in-MS-SQL-T-SQL/m-p/1918452#M75532</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2022-04-14T09:12:13Z</dc:date>
    </item>
  </channel>
</rss>

