<?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 SQL LEFT JOIN using between operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192984#M715342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I have one date coulom and i want to create end date coulom from the next update date,&lt;/P&gt;&lt;P&gt;the table have groups in it&lt;/P&gt;&lt;P&gt;Do you now how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Ester&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 09:59:49 GMT</pubDate>
    <dc:creator>ester_pr</dc:creator>
    <dc:date>2011-07-28T09:59:49Z</dc:date>
    <item>
      <title>SQL LEFT JOIN using between operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192982#M715340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried to mimic the following SQL statement in QlikView, but without success. Can anyone help to inspire something for me?&lt;/P&gt;&lt;P&gt;Select .....&lt;/P&gt;&lt;P&gt;From....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join ...&lt;/P&gt;&lt;P&gt;ON (Date BETWEEN DateStart AND DateEnd) and ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PTT&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 22:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192982#M715340</guid>
      <dc:creator />
      <dc:date>2010-03-24T22:15:01Z</dc:date>
    </item>
    <item>
      <title>SQL LEFT JOIN using between operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192983#M715341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're looking for an INTERVALMATCH. Here's an example joining on a date range and on two additional fields.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Contracts]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Contract, Client, Item, Start, End, Price&lt;BR /&gt;1, Client A, Item A, 01/01/08, 12/31/08, 50&lt;BR /&gt;2, Client A, Item A, 01/01/09, 12/31/09, 60&lt;BR /&gt;3, Client A, Item B, 01/01/08, 06/30/09, 70&lt;BR /&gt;4, Client A, Item B, 07/01/09, 12/31/09, 75&lt;BR /&gt;5, Client B, Item A, 01/01/08, 06/30/08, 40&lt;BR /&gt;6, Client B, Item A, 07/01/08, 12/31/09, 50&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Sales]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Sale, Client, Item, Date&lt;BR /&gt;1, Client A, Item A, 02/15/08&lt;BR /&gt;2, Client A, Item A, 04/15/09&lt;BR /&gt;3, Client A, Item B, 03/20/09&lt;BR /&gt;4, Client A, Item B, 11/30/09&lt;BR /&gt;5, Client B, Item A, 02/15/08&lt;BR /&gt;6, Client B, Item A, 07/31/08&lt;BR /&gt;];&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN ([Sales])&lt;BR /&gt;INTERVALMATCH (Date, Client, Item)&lt;BR /&gt;LOAD&lt;BR /&gt; Start&lt;BR /&gt;,End&lt;BR /&gt;,Client&lt;BR /&gt;,Item&lt;BR /&gt;RESIDENT [Contracts]&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN ([Sales])&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT [Contracts]&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE [Contracts]&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Mar 2010 22:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192983#M715341</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-03-24T22:34:20Z</dc:date>
    </item>
    <item>
      <title>SQL LEFT JOIN using between operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192984#M715342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;I have one date coulom and i want to create end date coulom from the next update date,&lt;/P&gt;&lt;P&gt;the table have groups in it&lt;/P&gt;&lt;P&gt;Do you now how to do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Ester&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 09:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192984#M715342</guid>
      <dc:creator>ester_pr</dc:creator>
      <dc:date>2011-07-28T09:59:49Z</dc:date>
    </item>
    <item>
      <title>SQL LEFT JOIN using between operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192985#M715343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to replace the keyword "Between" as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ON (&lt;STRONG&gt;Date &amp;gt;= DateStart AND Date &amp;lt;= DateEnd&lt;/STRONG&gt;) and ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 10:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-LEFT-JOIN-using-between-operator/m-p/192985#M715343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-28T10:41:22Z</dc:date>
    </item>
  </channel>
</rss>

