<?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: Query from different databases in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253961#M37123</link>
    <description>Hi 
&lt;BR /&gt;Here is job: 
&lt;BR /&gt;tFileInputDelimited_1and tFileInputDelimited_2 do a left join. 
&lt;BR /&gt;tFileInputDelimited_3 and tFileInputDelimited_4 do an inner join and get the unmatched rows. 
&lt;BR /&gt;tFileInputDelimited_1=tFileInputDelimited_4: 
&lt;BR /&gt;16;11111;Mary 
&lt;BR /&gt;17;22222;Elise 
&lt;BR /&gt;18;44444;Eric 
&lt;BR /&gt;19;55555;Shong 
&lt;BR /&gt;tFileInputDelimited_2=tFileInputDelimited_3: 
&lt;BR /&gt;1;mmmmm;Mary 
&lt;BR /&gt;2;eeeee;Elise 
&lt;BR /&gt;3;ccccc;Catly 
&lt;BR /&gt;4;ddddd;Shong 
&lt;BR /&gt;5;fffff;Plegall 
&lt;BR /&gt;Result: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job formerge at 14:32 25/02/2008.&lt;BR /&gt;.--+-----+-----+-------.&lt;BR /&gt;|      tLogRow_1       |&lt;BR /&gt;|=-+-----+-----+------=|&lt;BR /&gt;|id|code1|code2|name   |&lt;BR /&gt;|=-+-----+-----+------=|&lt;BR /&gt;|1 |11111|mmmmm|Mary   |&lt;BR /&gt;|2 |22222|eeeee|Elise  |&lt;BR /&gt;|3 |44444|null |Eric   |&lt;BR /&gt;|4 |55555|ddddd|Shong  |&lt;BR /&gt;|5 |null |ccccc|Catly  |&lt;BR /&gt;|6 |null |fffff|Plegall|&lt;BR /&gt;'--+-----+-----+-------'&lt;BR /&gt;Job formerge ended at 14:32 25/02/2008. &lt;/PRE&gt;</description>
    <pubDate>Mon, 25 Feb 2008 06:42:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-02-25T06:42:01Z</dc:date>
    <item>
      <title>Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253950#M37112</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;there is a way in Talend Open Studio to write a query (in query builder) using tables from different databases or to see and edit the tMap process as a query, it's possible?&lt;BR /&gt;thank you very much!&lt;BR /&gt;vikr&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 14:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253950#M37112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253951#M37113</link>
      <description>Hi
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi all,&lt;BR /&gt;there is a way in Talend Open Studio to write a query (in query builder) using tables from different databases or to see and edit the tMap process as a query, it's possible?&lt;BR /&gt;thank you very much!&lt;BR /&gt;vikr&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;It is impossible to query data by only writing a query statement from different databases. You need to query data from different databases, then use a tMap to merge the data or do join.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 15 Feb 2008 08:46:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253951#M37113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-15T08:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253952#M37114</link>
      <description>Hi Vicker&lt;BR /&gt;Another way could be to group temporarily your tables in one database to be able to join them in the query builder, if you really don't want to use the tMap.&lt;BR /&gt;HTH,&lt;BR /&gt;Elisa</description>
      <pubDate>Fri, 15 Feb 2008 13:36:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253952#M37114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-15T13:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253953#M37115</link>
      <description>Thank you shon and thank you esabot! 
&lt;BR /&gt;Now if I insert the tables as temporary tables in the same database then can I insert more than one select statement in the same query related to two of the three tables? 
&lt;BR /&gt;I got a syntax error message in the SQLBuilder. 
&lt;BR /&gt;The query code is the follow: 
&lt;BR /&gt;select Table1.code,Table1.nome 
&lt;BR /&gt;from Table1 
&lt;BR /&gt;select Table2.code,Table2.nome 
&lt;BR /&gt;from Table2 
&lt;BR /&gt;Or is there another way to do it? I'm using Access database. 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you! 
&lt;BR /&gt;Vikr</description>
      <pubDate>Mon, 18 Feb 2008 11:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253953#M37115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-18T11:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253954#M37116</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Now if I insert the tables as temporary tables in the same database then can I insert more than one select statement in the same query related to two of the three tables?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It is impossble to write two or more select statement in the SQLBuilder. 
&lt;BR /&gt;If you want to get data from different tables, you should use several tAccessInput for each table. For example, you can use a tAccessInput component to query data from table1 and use another tAccessInput component to query data from table2. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 19 Feb 2008 06:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253954#M37116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-19T06:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253955#M37117</link>
      <description>Hi Shong, Yes, It's what I did. I have two tAccessInputs but I have to perform an advanced sql query to merge their data.
&lt;BR /&gt;Let me explain my job:
&lt;BR /&gt;I have inserted the tAccessinput twice, so I have four tAccessInput for only two databases (AccessDB1 and AccessDB2). 
&lt;BR /&gt;Then I've inserted a tMap between AccessDB1 and AccessDB2 to perform a left join, and the same thing between AccessDB2 and AccessDB1 to get all the rows of AccessDB2 that not match the first join.
&lt;BR /&gt;Then I want perform a union of the two resulting tables and so I've inserted a tUnite component. After this I get some duplicates rows, so I've inserted a tUniqRow component. Then sort the rows and at last send the data to the output table.
&lt;BR /&gt;The problem is that when I insert one row on DBAccess1 then I get one duplicate row on DBAccessOutput even though I've inserted tUniqRow. 
&lt;BR /&gt;tUnite component does not perform check for duplicates rows. 
&lt;BR /&gt;So how can I send to the output only unique rows?
&lt;BR /&gt;Or is there another easier way to do all the job? 
&lt;BR /&gt;Please see images for further information.
&lt;BR /&gt;
&lt;BR /&gt;Thaks in advance
&lt;BR /&gt;vikr</description>
      <pubDate>Tue, 19 Feb 2008 08:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253955#M37117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-19T08:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253956#M37118</link>
      <description>Hi
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Then I've inserted a tMap between AccessDB1 and AccessDB2 to perform a left join, and the same thing between AccessDB2 and AccessDB1 to get all the rows of AccessDB2 that not match the first join.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;I don't know why you would do the left join.
&lt;BR /&gt;If you want to get all the rows from the AccessDB1 and AccessDB2, you just need to use two tAccessInput components to get data from two DB. Then, use a tUnite component to merge all the rows and use a a tUniqRow component to the unique rows.(see the screenshot1)
&lt;BR /&gt;Note that you should select all the columns as key attribute(see the screenshot2)
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 20 Feb 2008 07:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253956#M37118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-20T07:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253957#M37119</link>
      <description>Hi shong, 
&lt;BR /&gt;I do the left join because I have these two input tables made up of three fields and one output table made up of four fields, and I want join them according to one common field. 
&lt;BR /&gt;These are my three tables: 
&lt;BR /&gt;InputTable1 (id1, code1, name) 
&lt;BR /&gt;InputTable2 (id2, code2, name) 
&lt;BR /&gt;OutputTable (id3, code1, code2, name) 
&lt;BR /&gt; 
&lt;BR /&gt;So in the output table I want the common field (name) and one field (code1 and code2) for each input table. 
&lt;BR /&gt;If I use only the tUnite I can't specify the destination fields correctly as I can do with the tMap, tUnite component does a union between the input tables but it puts the "name" field in the wrong field "code2". 
&lt;BR /&gt;So Could I specify correctly the destination fields in the tUnite component? 
&lt;BR /&gt;Furthermore I've tried also to set the tUniqRow selecting all the rows as keys attributes, but however I get duplicates rows. The duplicates rows are the common rows between the input tables. 
&lt;BR /&gt;If I set only "name" as key attribute I get the duplicate rows only when I insert new rows in the input tables. 
&lt;BR /&gt;What could I do to solve these problems? 
&lt;BR /&gt;thanks! 
&lt;BR /&gt;vikr</description>
      <pubDate>Wed, 20 Feb 2008 09:39:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253957#M37119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-20T09:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253958#M37120</link>
      <description>Hi
&lt;BR /&gt;Can you show some input data from InputTable1 and InputTable2 ? What are your expected result in OutputTable?
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 21 Feb 2008 07:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253958#M37120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-21T07:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253959#M37121</link>
      <description>Yes, Shong 
&lt;BR /&gt;please see attached image.
&lt;BR /&gt;Table1 and Table2 are input tables, Table3 is the output one.
&lt;BR /&gt;
&lt;BR /&gt;Thank you
&lt;BR /&gt;Vikr</description>
      <pubDate>Thu, 21 Feb 2008 08:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253959#M37121</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-21T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253960#M37122</link>
      <description>Actually I think I should do a FULL OUTER JOIN between the tables instead of two left join, but probably I must write the code to do this. &lt;BR /&gt;Or could I solve this problem from Talend Open Studio IDE?&lt;BR /&gt;thanks&lt;BR /&gt;vikr</description>
      <pubDate>Fri, 22 Feb 2008 18:56:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253960#M37122</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-22T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253961#M37123</link>
      <description>Hi 
&lt;BR /&gt;Here is job: 
&lt;BR /&gt;tFileInputDelimited_1and tFileInputDelimited_2 do a left join. 
&lt;BR /&gt;tFileInputDelimited_3 and tFileInputDelimited_4 do an inner join and get the unmatched rows. 
&lt;BR /&gt;tFileInputDelimited_1=tFileInputDelimited_4: 
&lt;BR /&gt;16;11111;Mary 
&lt;BR /&gt;17;22222;Elise 
&lt;BR /&gt;18;44444;Eric 
&lt;BR /&gt;19;55555;Shong 
&lt;BR /&gt;tFileInputDelimited_2=tFileInputDelimited_3: 
&lt;BR /&gt;1;mmmmm;Mary 
&lt;BR /&gt;2;eeeee;Elise 
&lt;BR /&gt;3;ccccc;Catly 
&lt;BR /&gt;4;ddddd;Shong 
&lt;BR /&gt;5;fffff;Plegall 
&lt;BR /&gt;Result: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job formerge at 14:32 25/02/2008.&lt;BR /&gt;.--+-----+-----+-------.&lt;BR /&gt;|      tLogRow_1       |&lt;BR /&gt;|=-+-----+-----+------=|&lt;BR /&gt;|id|code1|code2|name   |&lt;BR /&gt;|=-+-----+-----+------=|&lt;BR /&gt;|1 |11111|mmmmm|Mary   |&lt;BR /&gt;|2 |22222|eeeee|Elise  |&lt;BR /&gt;|3 |44444|null |Eric   |&lt;BR /&gt;|4 |55555|ddddd|Shong  |&lt;BR /&gt;|5 |null |ccccc|Catly  |&lt;BR /&gt;|6 |null |fffff|Plegall|&lt;BR /&gt;'--+-----+-----+-------'&lt;BR /&gt;Job formerge ended at 14:32 25/02/2008. &lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Feb 2008 06:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253961#M37123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-25T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253962#M37124</link>
      <description>Hi Shong,
&lt;BR /&gt;yes, you are rigth
&lt;BR /&gt;now it's working!
&lt;BR /&gt;Thank you very much
&lt;BR /&gt;regards
&lt;BR /&gt;vikr</description>
      <pubDate>Tue, 26 Feb 2008 09:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253962#M37124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-02-26T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253963#M37125</link>
      <description>Thank you very much</description>
      <pubDate>Thu, 06 Oct 2011 07:33:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253963#M37125</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-10-06T07:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253964#M37126</link>
      <description>hello&lt;BR /&gt;can i compare data from 2 different databases(oracle and sql server)?&lt;BR /&gt;plz if yes how?</description>
      <pubDate>Wed, 29 Jan 2014 12:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253964#M37126</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-01-29T12:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Query from different databases</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253965#M37127</link>
      <description>hi khalidinformatic,
&lt;BR /&gt;Yes you can get data from two different databases using the respective components toracleinput (for data from oracle database) and tmsmsqlinput (for data from sql server) and then join/compare them in the tmap.</description>
      <pubDate>Wed, 29 Jan 2014 12:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Query-from-different-databases/m-p/2253965#M37127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-29T12:53:44Z</dc:date>
    </item>
  </channel>
</rss>

