<?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 insert, update and delete incremental load problem sos in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/insert-update-and-delete-incremental-load-problem-sos/m-p/1792220#M61985</link>
    <description>&lt;P&gt;Hello all, i also posted this also on "New to Qlik Sense" forum, but also on here because I believe this board is also appropriate.&lt;/P&gt;&lt;P&gt;I'm doing an incremental load with the date field coming from another table to keep the records, so i have:&lt;/P&gt;&lt;P&gt;[Table]:&lt;/P&gt;&lt;P&gt;LOAD id as [Row ID],&lt;BR /&gt;problem_id ,&lt;BR /&gt;person_id ;&lt;/P&gt;&lt;P&gt;SQL SELECT a.id,&lt;BR /&gt;a.problem_id,&lt;BR /&gt;a.person_id, b. b.updated&lt;BR /&gt;FROM "public."source_table1" a&lt;BR /&gt;inner join "public"."source_Table2" b&lt;BR /&gt;on a.person_id=b.id&lt;BR /&gt;where b.updated &amp;gt;'$(Last_Update)';&lt;/P&gt;&lt;P&gt;JOIN([Table])&lt;/P&gt;&lt;P&gt;LOAD id as problem_id,&lt;BR /&gt;description as problem_description;&lt;/P&gt;&lt;P&gt;SQL SELECT "id",&lt;BR /&gt;"description"&lt;BR /&gt;FROM "public"."source_table3";&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;Load * from [$(vPathQVD)Table.qvd] (qvd)&lt;BR /&gt;WHERE NOT EXISTS([Row ID]);&lt;/P&gt;&lt;P&gt;Inner Join SQL SELECT id from "public."source_table1";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT my final qvd, ends up with an extra id column...also i believe id and "Row ID" should be one column... but they are not and are filled not with same numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could REALLY use your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 14:26:10 GMT</pubDate>
    <dc:creator>ioannagr</dc:creator>
    <dc:date>2021-03-17T14:26:10Z</dc:date>
    <item>
      <title>insert, update and delete incremental load problem sos</title>
      <link>https://community.qlik.com/t5/App-Development/insert-update-and-delete-incremental-load-problem-sos/m-p/1792220#M61985</link>
      <description>&lt;P&gt;Hello all, i also posted this also on "New to Qlik Sense" forum, but also on here because I believe this board is also appropriate.&lt;/P&gt;&lt;P&gt;I'm doing an incremental load with the date field coming from another table to keep the records, so i have:&lt;/P&gt;&lt;P&gt;[Table]:&lt;/P&gt;&lt;P&gt;LOAD id as [Row ID],&lt;BR /&gt;problem_id ,&lt;BR /&gt;person_id ;&lt;/P&gt;&lt;P&gt;SQL SELECT a.id,&lt;BR /&gt;a.problem_id,&lt;BR /&gt;a.person_id, b. b.updated&lt;BR /&gt;FROM "public."source_table1" a&lt;BR /&gt;inner join "public"."source_Table2" b&lt;BR /&gt;on a.person_id=b.id&lt;BR /&gt;where b.updated &amp;gt;'$(Last_Update)';&lt;/P&gt;&lt;P&gt;JOIN([Table])&lt;/P&gt;&lt;P&gt;LOAD id as problem_id,&lt;BR /&gt;description as problem_description;&lt;/P&gt;&lt;P&gt;SQL SELECT "id",&lt;BR /&gt;"description"&lt;BR /&gt;FROM "public"."source_table3";&lt;/P&gt;&lt;P&gt;Concatenate&lt;BR /&gt;Load * from [$(vPathQVD)Table.qvd] (qvd)&lt;BR /&gt;WHERE NOT EXISTS([Row ID]);&lt;/P&gt;&lt;P&gt;Inner Join SQL SELECT id from "public."source_table1";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUT my final qvd, ends up with an extra id column...also i believe id and "Row ID" should be one column... but they are not and are filled not with same numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could REALLY use your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/insert-update-and-delete-incremental-load-problem-sos/m-p/1792220#M61985</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-03-17T14:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: insert, update and delete incremental load problem sos</title>
      <link>https://community.qlik.com/t5/App-Development/insert-update-and-delete-incremental-load-problem-sos/m-p/1792225#M61987</link>
      <description>&lt;P&gt;Why would id and Row ID be the same column? You've clearly left them as two different columns..?&lt;/P&gt;&lt;P&gt;Row ID comes from the first load and also the third. id is only visible in the last query (which has no associated load) and is supposed to join to something, so I am assuming 'id' is also a field in the Load * which we can't see and this is intended to filter out any id values which are not found in $(vPathQVD)Table.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 14:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/insert-update-and-delete-incremental-load-problem-sos/m-p/1792225#M61987</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-03-17T14:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: insert, update and delete incremental load problem sos</title>
      <link>https://community.qlik.com/t5/App-Development/insert-update-and-delete-incremental-load-problem-sos/m-p/1792231#M61988</link>
      <description>&lt;P&gt;Well, i care to keep the new RowIDs and delete the old ones, according to Last_Update, So that's why i do where not exists RowID for the initial QVD and i want to inner join with the primary id from source table but that's where i seem to lose it......&lt;/P&gt;&lt;P&gt;maybe i should consider this "&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SQL SELECT a.id,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a.problem_id,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a.person_id, b. b.updated&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM "public."source_table1" a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inner join "public"."source_Table2" b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on a.person_id=b.id"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;as the source table?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is this you suggest&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6142"&gt;@Or&lt;/a&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 15:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/insert-update-and-delete-incremental-load-problem-sos/m-p/1792231#M61988</guid>
      <dc:creator>ioannagr</dc:creator>
      <dc:date>2021-03-17T15:03:45Z</dc:date>
    </item>
  </channel>
</rss>

