<?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: Outer join and case statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434951#M696565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the two tables(qvd) are very huge around 3Gb each. Using a Resident might cause performance problems.&lt;/P&gt;&lt;P&gt;Can we get away with Resident?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Mar 2013 01:12:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-13T01:12:18Z</dc:date>
    <item>
      <title>Outer join and case statement</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434949#M696563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an issue that am struggling to find a solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two huge qvd files(3 Gb each) from two tables orders, payments&lt;/P&gt;&lt;P&gt;sample date with just the coulms of intereset is below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orders:&lt;/P&gt;&lt;P&gt;pay_method, orderdate, visitnum&lt;/P&gt;&lt;P&gt;A, 1-Jan-13, 123&lt;/P&gt;&lt;P&gt;A, 1-Jan-13, 234&lt;/P&gt;&lt;P&gt;B, 1-Jan-13, 345&lt;/P&gt;&lt;P&gt;G, 1-Jan-13, 456&lt;/P&gt;&lt;P&gt;G, 1-Jan-13, 567&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;payments:&lt;/P&gt;&lt;P&gt;visitnum, paydate&lt;/P&gt;&lt;P&gt;123, 1-Jan-13&lt;/P&gt;&lt;P&gt;345, 2-Jan-13&lt;/P&gt;&lt;P&gt;456, 5-Jan-13&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to join these two tables based on visitnum. In the output, I need paydate by default for any mapping records. If there is no mapping I need to get the orderdate&lt;/P&gt;&lt;P&gt;from orders&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output I need should look like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pay_method, date, visitnum&lt;/P&gt;&lt;P&gt;A, 1-Jan-13, 123&lt;/P&gt;&lt;P&gt;A, 1-Jan-13, 234&lt;/P&gt;&lt;P&gt;B, 2-Jan-13, 345&lt;/P&gt;&lt;P&gt;G, 5-Jan-13, 456&lt;/P&gt;&lt;P&gt;G, 1-Jan-13, 567&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I feel using a case statement in an outer join can give me the required output, but these are huge tables with millons of rows, so I do not want to join the tables in SQL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a way to do this is qlikview while reloading??&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 00:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434949#M696563</guid>
      <dc:creator />
      <dc:date>2013-03-13T00:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Outer join and case statement</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434950#M696564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following script gives the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (orders) LOAD visitnum, paydate Resident payments;&lt;/P&gt;&lt;P&gt;DROP Table payments;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;NoConcatenate LOAD pay_method, visitnum, If(IsNull(paydate),orderdate,paydate) as date Resident orders;&lt;/P&gt;&lt;P&gt;DROP Table orders;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 01:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434950#M696564</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2013-03-13T01:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Outer join and case statement</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434951#M696565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the two tables(qvd) are very huge around 3Gb each. Using a Resident might cause performance problems.&lt;/P&gt;&lt;P&gt;Can we get away with Resident?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 01:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434951#M696565</guid>
      <dc:creator />
      <dc:date>2013-03-13T01:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Outer join and case statement</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434952#M696566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi krishnamoorthy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know if using the resident tables causes performance impact as that data is originally loaded from huge qvd files?&lt;/P&gt;&lt;P&gt;If so, do we have to write the output to a seperate qvd and again load the qvd? &lt;/P&gt;&lt;P&gt;what is the beast approcah?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am new to qlikview any suggestions would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 18:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434952#M696566</guid>
      <dc:creator />
      <dc:date>2013-03-13T18:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Outer join and case statement</title>
      <link>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434953#M696568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link the two tables with forming key i.e &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orders:&lt;/P&gt;&lt;P&gt;visitnum &amp;amp;'-'&amp;amp; floor(orderdate) as Key,&lt;/P&gt;&lt;P&gt;visitnum,&lt;/P&gt;&lt;P&gt;pay_method, &lt;/P&gt;&lt;P&gt;orderdate as order_Date, &lt;/P&gt;&lt;P&gt;visitnum &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;payments:&lt;/P&gt;&lt;P&gt;visitnum &amp;amp;'-'&amp;amp; floor(paydate) as Key,&lt;/P&gt;&lt;P&gt;paydate as pay_date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then in front end you can use If(IsNull(pay_date),order_Date,pay_date) to get one date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Udit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Mar 2013 04:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Outer-join-and-case-statement/m-p/434953#M696568</guid>
      <dc:creator>udit_kumar_sana</dc:creator>
      <dc:date>2013-03-14T04:53:38Z</dc:date>
    </item>
  </channel>
</rss>

