<?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 Join or LOAD Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143369#M22628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allmost forgot - maybe I shall use JOIN LOAD function? Please, advise )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2009 20:19:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-05T20:19:35Z</dc:date>
    <item>
      <title>SQL Join or LOAD Join</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143368#M22627</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;Kind of confused with JOIN thing. Maybe someone can advise?&lt;/P&gt;&lt;P&gt;I have a table with 6 fields (contract, task, user, date, status, hours) . Firstly, I need to distinctivelly select all rows with minimal date, so it goes:&lt;/P&gt;&lt;P&gt;1. SQL SELECT contract, task, user, MIN (date) FROM table1&lt;/P&gt;&lt;P&gt;Now I need to add 2 more fields - I want to join my temp_table with table 1, so it will be ???&lt;/P&gt;&lt;P&gt;1. SQL SELECT contract, task, user, MIN (date) FROM table1&lt;/P&gt;&lt;P&gt;2. JOIN SELECT contract, task, user, date, status, hours FROM table1&lt;/P&gt;&lt;P&gt;Or am I reall confused with JOIN syntaxis?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 20:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143368#M22627</guid>
      <dc:creator />
      <dc:date>2009-05-05T20:18:57Z</dc:date>
    </item>
    <item>
      <title>SQL Join or LOAD Join</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143369#M22628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Allmost forgot - maybe I shall use JOIN LOAD function? Please, advise )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 20:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143369#M22628</guid>
      <dc:creator />
      <dc:date>2009-05-05T20:19:35Z</dc:date>
    </item>
    <item>
      <title>SQL Join or LOAD Join</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143370#M22629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV dir="ltr" id="result_box" style="text-align:left;"&gt;I recommend you find the meaning of a join, with their respective roles, left, inner, and so on.&lt;BR /&gt;After this study can clearly resolve your concerns.&lt;BR /&gt;&lt;BR /&gt;I recommend to catch a single database, so we recommend a one-time charge in the table, then you can do this with a call to load the resident, as often as required, then you can delete if not ultilizas with a drop table.&lt;BR /&gt;Good luck.&lt;BR /&gt;JCM&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 20:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143370#M22629</guid>
      <dc:creator />
      <dc:date>2009-05-05T20:57:57Z</dc:date>
    </item>
    <item>
      <title>SQL Join or LOAD Join</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143371#M22630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mikhail,&lt;BR /&gt;To get the right answer you have to identify the problem first. I don't thnk that your pupose is just to use join. My assumption (may be wrong) that you want to get the data from the table1 only for the earliest date for each user/task/contract combination.&lt;BR /&gt;If the assumption is correct, It may be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Table_src:&lt;BR /&gt;SQL SELECT&lt;BR /&gt; contract, task, user, date, status, hours&lt;BR /&gt;FROM table1;&lt;BR /&gt;Table:&lt;BR /&gt;LOAD&lt;BR /&gt; contract, task, user,&lt;BR /&gt; MIN (date) as MinDate&lt;BR /&gt;RESIDENT Table_src&lt;BR /&gt;GROUP BY contract, task, user;&lt;BR /&gt;LEFT JOIN (Table) LOAD&lt;BR /&gt; date as MinDate,&lt;BR /&gt; contract, task, user, date, status, hours&lt;BR /&gt;RESIDENT Table_src;&lt;BR /&gt;Drop table Table_src;&lt;BR /&gt;Drop Field MinDate;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;(There could be better ways, I think...)&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 21:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143371#M22630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-05T21:29:37Z</dc:date>
    </item>
    <item>
      <title>SQL Join or LOAD Join</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143372#M22631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your DBMS support correlated subqueries? How about doing it al lin the SELECT like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;SELECT contract, task, user, date, status, hours&lt;BR /&gt;FROM table1 X&lt;BR /&gt;WHERE date =&lt;BR /&gt; (SELECT MIN(date)&lt;BR /&gt; FROM table1&lt;BR /&gt; WHERE contract = X.contract AND task = X.task)&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2009 23:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143372#M22631</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2009-05-05T23:48:37Z</dc:date>
    </item>
    <item>
      <title>SQL Join or LOAD Join</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143373#M22632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Michael. Your suggestion was totally right )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 16:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Join-or-LOAD-Join/m-p/143373#M22632</guid>
      <dc:creator />
      <dc:date>2009-05-06T16:11:15Z</dc:date>
    </item>
  </channel>
</rss>

