<?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: Delete rows from table where data matches input data in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202451#M4145</link>
    <description>Use a tMySQLROW to run the query before loading the new data.</description>
    <pubDate>Fri, 03 Jan 2014 14:10:26 GMT</pubDate>
    <dc:creator>janhess</dc:creator>
    <dc:date>2014-01-03T14:10:26Z</dc:date>
    <item>
      <title>Delete rows from table where data matches input data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202450#M4144</link>
      <description>I have a CSV file that I load into my MySQL database. The file contains various data (always the same kind of course), but also month and year. I would like to delete all data in my destination table that has the same month and year as my CSV file contains. Right now I go in to mysql workbench and type "Delete from table XXXXX where fiscal_year = 2014 and month =1" - but how can I incorporate it into my load in TOS instead?</description>
      <pubDate>Sat, 16 Nov 2024 11:47:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202450#M4144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from table where data matches input data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202451#M4145</link>
      <description>Use a tMySQLROW to run the query before loading the new data.</description>
      <pubDate>Fri, 03 Jan 2014 14:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202451#M4145</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2014-01-03T14:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from table where data matches input data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202452#M4146</link>
      <description>Thanks for your reply. That is a good option - but that requires me to run the query and change the parameters manually each time - as I do it today in MySQL Workbench? It is a step forward as I can do this in Talend only. But I would prefer if there were some kind of option during my ETL process where I could dynamically read the month and year and then delete the data from my destination table if they are there?</description>
      <pubDate>Sun, 05 Jan 2014 13:54:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202452#M4146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-05T13:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from table where data matches input data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202453#M4147</link>
      <description>Hi, 
&lt;BR /&gt;It seems your are looking for a dynamic sql query with Context or Variable Value in query? Did you check the component 
&lt;A href="https://help.talend.com/search/all?query=tMysqlTableList&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tMysqlTableList&lt;/A&gt;. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCQr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144758iE22C6B2262097C08/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCQr.png" alt="0683p000009MCQr.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 06 Jan 2014 06:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202453#M4147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-06T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from table where data matches input data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202454#M4148</link>
      <description>I have posted my flow - the destination "Ledger_new" contains all data including perhaps current month and year. The input "Ledger" contains new data, but some of them could already be in the "Ledger_new" destination. To be sure I would therefore like to run a command where the fiscal_year and month from input "Ledger" delete values in output "Ledger_new" whether they are there or not. I have tried tMySQLRow where I can delete the rows I want, but only by typing in manually which fiscal_year and month I would like to delete. How can I do this dynamically? I have tried to look at tMySQLTableList, but I am unsure how to use it in this regards? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCNn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150021i391A6D23E093246F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCNn.png" alt="0683p000009MCNn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 10 Jan 2014 10:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202454#M4148</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-10T10:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from table where data matches input data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202455#M4149</link>
      <description>Deleting rows in a table is quite simple.
&lt;BR /&gt;Use a tMysqlOutput component and give it a flow which contains all columns you need to identify the rows to delete. Set all columns in this schema as key column and configure the tMysqlOutput in the Action on data to Delete.
&lt;BR /&gt;For the table I would use a context variable. I guess you have to delete a couple of rows in some of your tables.
&lt;BR /&gt;I would create a job which deletes the rows for exactly one table. But the table name is not fixed set instead the table name is a context variable and this variable have to be set from a surrounding job or within the job within a loop over your tables to process.</description>
      <pubDate>Sun, 12 Jan 2014 20:04:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202455#M4149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-12T20:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from table where data matches input data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202456#M4150</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Deleting rows in a table is quite simple.&lt;BR /&gt;Use a tMysqlOutput component and give it a flow which contains all columns you need to identify the rows to delete. Set all columns in this schema as key column and configure the tMysqlOutput in the Action on data to Delete.&lt;BR /&gt;For the table I would use a context variable. I guess you have to delete a couple of rows in some of your tables.&lt;BR /&gt;I would create a job which deletes the rows for exactly one table. But the table name is not fixed set instead the table name is a context variable and this variable have to be set from a surrounding job or within the job within a loop over your tables to process.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi, 
&lt;BR /&gt;it would be nice solution but in that case key field for deletion must be set (at least one key) to delete all preselected rows. It will be complicated to get it since schemas are not updated for tables in loop and key in field_options cannot be set dynamically and primary keys are not fetched from database (tested on postgres) and must be set manually in schema editor.</description>
      <pubDate>Wed, 08 Mar 2017 15:05:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Delete-rows-from-table-where-data-matches-input-data/m-p/2202456#M4150</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2017-03-08T15:05:18Z</dc:date>
    </item>
  </channel>
</rss>

