<?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: Unable to incorporate data file with SQL Select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151819#M632892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put all IDs to delete from your Excel extract file as a comma-separated list into a variable. Then use that variable in a $-sign expansion in your SQL statement to pass a list of IDs to delete to the DB server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your IDs are alphanumeric, you may want to add quotes to each value. Or whatever SQL requires to specify string literals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2016 18:50:55 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2016-06-30T18:50:55Z</dc:date>
    <item>
      <title>Unable to incorporate data file with SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151818#M632891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a project that requires the addition, update, and delete of field using Qlikview as part of an automation initative in my company.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of right now I have imported an excel extract that contains &lt;STRONG&gt;NEW&lt;/STRONG&gt; data based on a primary key called [ID], I have also imported a SQL table with &lt;STRONG&gt;HISTORICAL&lt;/STRONG&gt; values, the primary key is [ID] as well. The problem is I am trying to delete values in the SQL Historical Table that match [ID] with New values on the excel extract so I can insert all new values into the historical table without getting duplicates. I have considered update but it is more complex and there are new records occasionally that are in the extract but not in historical that need to be added to historical.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I have so far...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL DELETE [ID]&lt;/P&gt;&lt;P&gt;FROM "DB NAME HERE".dbo."TABLE NAME HERE"&lt;/P&gt;&lt;P&gt;WHERE [TABLE NAME HERE.Known Error ID] IN &lt;STRONG&gt;extract file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In bold is the problem, any suggestions? I had to censor some db information for company sake.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151818#M632891</guid>
      <dc:creator />
      <dc:date>2016-06-30T18:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to incorporate data file with SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151819#M632892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put all IDs to delete from your Excel extract file as a comma-separated list into a variable. Then use that variable in a $-sign expansion in your SQL statement to pass a list of IDs to delete to the DB server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your IDs are alphanumeric, you may want to add quotes to each value. Or whatever SQL requires to specify string literals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:50:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151819#M632892</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-06-30T18:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to incorporate data file with SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151820#M632894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I'll give this a try in the morning. I appreciate the help guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 20:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151820#M632894</guid>
      <dc:creator />
      <dc:date>2016-06-30T20:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to incorporate data file with SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151821#M632895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried this method but I realized that the list is excel sheet has [ID's] that are dynamic and change everytime the job runs every month, the excel extract also has other fields aside from the ID field so making a comma separated list would not be sufficient. There must be a way to parse out only the ID's and pass those to a CSV?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 12:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-incorporate-data-file-with-SQL-Select/m-p/1151821#M632895</guid>
      <dc:creator />
      <dc:date>2016-07-05T12:45:21Z</dc:date>
    </item>
  </channel>
</rss>

