<?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 records with subquery in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/delete-records-with-subquery/m-p/2369986#M133082</link>
    <description>Using a tMap to a join between T1 and T2 to get the t2.key, if there exist multiple keys, denomalize all the keys to one line after tMap, write the delete query in a tXXXRow component. eg:&lt;BR /&gt;tMysqlInput--main--tMap--main--tDenormalize--main(row2)--tFlowToIterate--iterate--tMssqlRow&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lookup&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tMssqlInput&lt;BR /&gt;&lt;BR /&gt;on tMssqlRow, you can write the query as below:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;"&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;delete from T1 where T1.key in&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;"+(String)globalMap.get("row2.columnName")&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Mon, 03 Aug 2015 15:22:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-08-03T15:22:52Z</dc:date>
    <item>
      <title>delete records with subquery</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-records-with-subquery/m-p/2369985#M133081</link>
      <description>&lt;P&gt;I have two tables in two databases (MYSQL &amp;amp; SQL*Server)&lt;BR /&gt;&lt;BR /&gt;I would like to implement, with talend, the following query:&lt;BR /&gt;&lt;BR /&gt;delete from T1 where T1.key in (select t2.key from T2 where T1.key=T2.key and T1.date&amp;lt;T2.date)&lt;BR /&gt;&lt;BR /&gt;is it possible ?&lt;BR /&gt;&lt;BR /&gt;If yes how?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Didier&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 14:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-records-with-subquery/m-p/2369985#M133081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-21T14:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: delete records with subquery</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-records-with-subquery/m-p/2369986#M133082</link>
      <description>Using a tMap to a join between T1 and T2 to get the t2.key, if there exist multiple keys, denomalize all the keys to one line after tMap, write the delete query in a tXXXRow component. eg:&lt;BR /&gt;tMysqlInput--main--tMap--main--tDenormalize--main(row2)--tFlowToIterate--iterate--tMssqlRow&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lookup&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tMssqlInput&lt;BR /&gt;&lt;BR /&gt;on tMssqlRow, you can write the query as below:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;"&lt;FONT size="2"&gt;&lt;FONT face="Verdana," helvetica=""&gt;delete from T1 where T1.key in&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;"+(String)globalMap.get("row2.columnName")&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 03 Aug 2015 15:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-records-with-subquery/m-p/2369986#M133082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-03T15:22:52Z</dc:date>
    </item>
  </channel>
</rss>

