<?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: How to generate SQL Queries/orders in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331341#M100332</link>
    <description>Not sure why you would want to do this. What problem are you trying to solve? Why do you need to create the insert statements yourself?
&lt;BR /&gt;With that said, I think you should reconsider why you are attempting to do this. 
&lt;BR /&gt;But, in the case that you really need to here's a possible design:
&lt;BR /&gt;input--&amp;gt;tJavaRow--&amp;gt;tDBRow
&lt;BR /&gt;in the JavaRow, create your insert statement and assign it to a context parameter:
&lt;BR /&gt;
&lt;PRE&gt;context.insert = "INSERT INTO TABLES(id,field1,field2) VALUES (" + input_row.id + "," + input_row.field1 + "," + input_row.field2 + ")"&lt;/PRE&gt;
&lt;BR /&gt;Then in the DBRow component, put the context variable for your query string:
&lt;BR /&gt;
&lt;PRE&gt;context.insert&lt;/PRE&gt;</description>
    <pubDate>Mon, 18 Jul 2011 14:18:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-07-18T14:18:23Z</dc:date>
    <item>
      <title>How to generate SQL Queries/orders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331338#M100329</link>
      <description>Hello all, 
&lt;BR /&gt;is it possible to generate SQL queries according to a configured database without executing them ?
&lt;BR /&gt;The "bulk" method with loading a csv file doesn't match with my need. 
&lt;BR /&gt;I'm working with the release 4.2.2 of TOS.
&lt;BR /&gt;Thanks in advance. 
&lt;BR /&gt;Nestor.</description>
      <pubDate>Sat, 16 Nov 2024 12:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331338#M100329</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate SQL Queries/orders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331339#M100330</link>
      <description>Hi
&lt;BR /&gt;What does the query look like would you like to generate?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 14 Jul 2011 08:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331339#M100330</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T08:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate SQL Queries/orders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331340#M100331</link>
      <description>Hi, 
&lt;BR /&gt;like that : "insert into tables(id, field1, field2..) values (1,"blabal", "blabla2"...)
&lt;BR /&gt;and update queries. 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 18 Jul 2011 08:06:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331340#M100331</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-07-18T08:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate SQL Queries/orders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331341#M100332</link>
      <description>Not sure why you would want to do this. What problem are you trying to solve? Why do you need to create the insert statements yourself?
&lt;BR /&gt;With that said, I think you should reconsider why you are attempting to do this. 
&lt;BR /&gt;But, in the case that you really need to here's a possible design:
&lt;BR /&gt;input--&amp;gt;tJavaRow--&amp;gt;tDBRow
&lt;BR /&gt;in the JavaRow, create your insert statement and assign it to a context parameter:
&lt;BR /&gt;
&lt;PRE&gt;context.insert = "INSERT INTO TABLES(id,field1,field2) VALUES (" + input_row.id + "," + input_row.field1 + "," + input_row.field2 + ")"&lt;/PRE&gt;
&lt;BR /&gt;Then in the DBRow component, put the context variable for your query string:
&lt;BR /&gt;
&lt;PRE&gt;context.insert&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Jul 2011 14:18:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331341#M100332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-18T14:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate SQL Queries/orders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331342#M100333</link>
      <description>I don't have any technical problem to solve : it's just a "politic one" !
&lt;BR /&gt;I don't want to manage SQL queries or to play "my queries", just to be able to get queries which are executed on the DB. 
&lt;BR /&gt;The aim is to generate an SQL script with the staging DB and to play this script on the productive environment. I repeat, it's just a politic question and I don't have any other choice. 
&lt;BR /&gt;In my mind, it should be very simple and should be provided by the tool as it's a powerfull way to check what it is doing with the DB. 
&lt;BR /&gt;I'm afraid to understand that this feature is not embeded...
&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Mon, 18 Jul 2011 15:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331342#M100333</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-07-18T15:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate SQL Queries/orders</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331343#M100334</link>
      <description>I have a little more complicated problem. I need to generate INSERT or UPDATE statements based on the data exists in the database. I am doing this because I need to execute this file on each client who has their own local database. I needed to maintain the FK integrity and cannot rebuild the table on each client. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Ravi Ada</description>
      <pubDate>Wed, 20 Jul 2011 23:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-generate-SQL-Queries-orders/m-p/2331343#M100334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-20T23:22:18Z</dc:date>
    </item>
  </channel>
</rss>

