<?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 Finding out Orphaned Records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-out-Orphaned-Records/m-p/220888#M73745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;Very often I need to check the integrity of the loaded data in order to search for orphaned records.&lt;/P&gt;&lt;P&gt;Here's an example : there's a a SALES table, where we have a PRODUCT NAME and then we have another PRODUCTS TABLE where of course we also have the PRODUCT NAME (KEY).&lt;/P&gt;&lt;P&gt;There may be records on the SALES table mentioning nonexisting PRODUCTS. That is, I may have a sales for a PRODUCT ITEM that is not on the PRODUCTS TABLE.&lt;/P&gt;&lt;P&gt;It should not be like that of course but, it happens.It's just an example. The real situation is way more complex.&lt;/P&gt;&lt;P&gt;Anyway, my point is : WHICH IS THE BEST WAY (more efficient/fastest way) to find out those records ?&lt;/P&gt;&lt;P&gt;I've done a TABLE BOX where I can see the nil entries. But a TABLE BOX for a HUGE DATABASE is very cumbersome.&lt;/P&gt;&lt;P&gt;Ideally I'd like to detect that situation upon script load and MAYBE, report that somehow or send an email. That would be great. But at least if I can easily detect that would be fine.&lt;/P&gt;&lt;P&gt;Have prepared a tiny QVW to show the problem.&lt;/P&gt;&lt;P&gt;Thanks in advance 4 your support !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2010 16:54:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-22T16:54:21Z</dc:date>
    <item>
      <title>Finding out Orphaned Records</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-out-Orphaned-Records/m-p/220888#M73745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello !&lt;/P&gt;&lt;P&gt;Very often I need to check the integrity of the loaded data in order to search for orphaned records.&lt;/P&gt;&lt;P&gt;Here's an example : there's a a SALES table, where we have a PRODUCT NAME and then we have another PRODUCTS TABLE where of course we also have the PRODUCT NAME (KEY).&lt;/P&gt;&lt;P&gt;There may be records on the SALES table mentioning nonexisting PRODUCTS. That is, I may have a sales for a PRODUCT ITEM that is not on the PRODUCTS TABLE.&lt;/P&gt;&lt;P&gt;It should not be like that of course but, it happens.It's just an example. The real situation is way more complex.&lt;/P&gt;&lt;P&gt;Anyway, my point is : WHICH IS THE BEST WAY (more efficient/fastest way) to find out those records ?&lt;/P&gt;&lt;P&gt;I've done a TABLE BOX where I can see the nil entries. But a TABLE BOX for a HUGE DATABASE is very cumbersome.&lt;/P&gt;&lt;P&gt;Ideally I'd like to detect that situation upon script load and MAYBE, report that somehow or send an email. That would be great. But at least if I can easily detect that would be fine.&lt;/P&gt;&lt;P&gt;Have prepared a tiny QVW to show the problem.&lt;/P&gt;&lt;P&gt;Thanks in advance 4 your support !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 16:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-out-Orphaned-Records/m-p/220888#M73745</guid>
      <dc:creator />
      <dc:date>2010-01-22T16:54:21Z</dc:date>
    </item>
    <item>
      <title>Finding out Orphaned Records</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-out-Orphaned-Records/m-p/220889#M73746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd probably turn the PRODUCTS table into a MAPPING LOAD, then put the description on the SALES table with a default value like applymap('PRODUCTS',"PRODUCT_NAME",'INVALID') as "DESCRIPTION", and then select INVALID. Or if you want the table on a permanent basis, make it as a straight table with expression DESCRIPTION='INVALID', then hide that column. See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2010 00:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-out-Orphaned-Records/m-p/220889#M73746</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-01-23T00:14:33Z</dc:date>
    </item>
    <item>
      <title>Finding out Orphaned Records</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-out-Orphaned-Records/m-p/220890#M73747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see !&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;For this particular case, it works.&lt;/P&gt;&lt;P&gt;But maybe we could have a more generalized approach, for any situation !&lt;/P&gt;&lt;P&gt;Shall we hear for more suggestions ?&lt;/P&gt;&lt;P&gt;Cause since my data is coming from non-reliable sources, I may have this orphaned key problem elsewhere.&lt;/P&gt;&lt;P&gt;So I'd like a more generalized and more automatic detection.&lt;/P&gt;&lt;P&gt;But let's listen some more, ok ?&lt;/P&gt;&lt;P&gt;Thank you again !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2010 12:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-out-Orphaned-Records/m-p/220890#M73747</guid>
      <dc:creator />
      <dc:date>2010-01-25T12:52:08Z</dc:date>
    </item>
  </channel>
</rss>

