<?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: Update or Insert without a primary key in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350780#M117567</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello Nacef&lt;BR /&gt;When you define the output schema, select one of columns as key column. As there must exist one key column if you do 'update' action.&lt;BR /&gt;Best regards&lt;BR /&gt; &lt;BR /&gt; shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;What if i need to insert and update, and need to set my primary key through sequence through toracleoutput. how can i do it. 
&lt;BR /&gt;Hi 
&lt;BR /&gt;Please see this topic to know how to call a Oracle sequence on through tOracleOutput. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCtbaCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Oracle-sequence-while-insert/td-p/64968&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Wed, 31 Aug 2011 02:10:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-31T02:10:16Z</dc:date>
    <item>
      <title>Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350773#M117560</link>
      <description>Hi all, 
&lt;BR /&gt;The jpb I am designing aims to collect data from a SQL Server database and then store them into a MySQL database periodically. 
&lt;BR /&gt;So the main architecture of this job : 
&lt;BR /&gt;- Iterate through a collection of fields in my local MySql database. 
&lt;BR /&gt;- For each field of the Mysql data, execute a query on a remote SQL Server database (passing the field as param) 
&lt;BR /&gt;- Mapping the collected data with a local MySQL table 
&lt;BR /&gt;- Write the result in a local table on the MySQL database : If the row exists it is updated, if not it is added. 
&lt;BR /&gt;The problem is in the last step (saving the data), the existence check in my case has to be based on some table fields (date, hour, campaign ...) which are not primary keys. 
&lt;BR /&gt;How this can be done ? I need to check if the row corresponding to the retrieved data row (from MSSQL) exists is the MySQL table (according to date, hour, campaign ...) if exists update some needed fields, if not insert a new row with the retrieved data 
&lt;BR /&gt;Thanks to all 
&lt;BR /&gt;Nacef</description>
      <pubDate>Sat, 16 Nov 2024 13:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350773#M117560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350774#M117561</link>
      <description>Hello Nacef 
&lt;BR /&gt;When you define the output schema, select one of columns as key column. As there must exist one key column if you do 'update' action. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 07 Jul 2009 07:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350774#M117561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-07T07:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350775#M117562</link>
      <description>Hi all,
&lt;BR /&gt;I resolved it using the "use field options" from the advanced settings of the tMySQLOutput object and then selecting the columns of the schema to be the key for the update.
&lt;BR /&gt;This worked like a charm.
&lt;BR /&gt;Nacef</description>
      <pubDate>Tue, 07 Jul 2009 10:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350775#M117562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-07-07T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350776#M117563</link>
      <description>Cn you plese give exmple or screen shot for this? In my cse, updte is not hppening. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello Nacef&lt;BR /&gt;When you define the output schema, select one of columns as key column. As there must exist one key column if you do 'update' action.&lt;BR /&gt;Best regards&lt;BR /&gt; &lt;BR /&gt; shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 17 Aug 2011 21:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350776#M117563</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-08-17T21:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350777#M117564</link>
      <description>@Pkhedkr07
&lt;BR /&gt;You can just enable a column the schema of any of your component. Have a look at my screenshot. Where ColumnA is the key because the key column is enabled in the schema.
&lt;BR /&gt;
&lt;IMG src="https://community.qlik.com/" /&gt;
&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 18 Aug 2011 14:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350777#M117564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-18T14:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350778#M117565</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello Nacef&lt;BR /&gt;When you define the output schema, select one of columns as key column. As there must exist one key column if you do 'update' action.&lt;BR /&gt;Best regards&lt;BR /&gt; &lt;BR /&gt; shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;What if i need to insert and update, and need to set my primary key through sequence through toracleoutput. how can i do it.</description>
      <pubDate>Tue, 30 Aug 2011 18:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350778#M117565</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-08-30T18:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350779#M117566</link>
      <description>I am using tELTOracleOuptput along with other tELT component. I wish to update one of the column a table using tELTOracle output. I am describing my problem below
&lt;BR /&gt;I have a table named "room". It has three columns namely X,Y &amp;amp; Z where x is a unique column. The content of the table is given below
&lt;BR /&gt;X Y Z
&lt;BR /&gt;12 23 34
&lt;BR /&gt;23 14 15
&lt;BR /&gt;34 12 23
&lt;BR /&gt;I want to update the column Y of the "room"(tELTOracleInput) table based on the joining with another table namely "house"(tELTOracleInput), which has two columns namely Z &amp;amp; Y. The content of the table "house" is given below.
&lt;BR /&gt;Z Y
&lt;BR /&gt;15 39
&lt;BR /&gt;34 25
&lt;BR /&gt;23 11
&lt;BR /&gt;I have joined(left outer join using tELTMap ) table room with table house with the joining condition being room.Z=house.Z(+) and populating house.Y
&lt;BR /&gt;Now i want room.Y to be updated to house.Y
&lt;BR /&gt;The final table "room" should be
&lt;BR /&gt;X Y Z
&lt;BR /&gt;12 25 34
&lt;BR /&gt;23 39 15
&lt;BR /&gt;34 11 23
&lt;BR /&gt;Can anyone help me out how to use the update in tELTOracleOutput to get the desired result.
&lt;BR /&gt;Note:- Data type of all the columns is varchar(50). I am using TDQ .</description>
      <pubDate>Tue, 30 Aug 2011 20:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350779#M117566</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-30T20:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350780#M117567</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hello Nacef&lt;BR /&gt;When you define the output schema, select one of columns as key column. As there must exist one key column if you do 'update' action.&lt;BR /&gt;Best regards&lt;BR /&gt; &lt;BR /&gt; shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;What if i need to insert and update, and need to set my primary key through sequence through toracleoutput. how can i do it. 
&lt;BR /&gt;Hi 
&lt;BR /&gt;Please see this topic to know how to call a Oracle sequence on through tOracleOutput. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCtbaCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Oracle-sequence-while-insert/td-p/64968&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 31 Aug 2011 02:10:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350780#M117567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-31T02:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Update or Insert without a primary key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350781#M117568</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I am using tELTOracleOuptput along with other tELT component. I wish to update one of the column a table using tELTOracle output. I am describing my problem below&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi 
&lt;BR /&gt;For better management, please report a new topic and then I will answer you on the new topic. 
&lt;BR /&gt;Thanks for your support! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 31 Aug 2011 02:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Update-or-Insert-without-a-primary-key/m-p/2350781#M117568</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-31T02:11:49Z</dc:date>
    </item>
  </channel>
</rss>

