<?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: [resolved] Converting WHERE clause in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365940#M129491</link>
    <description>To be honest, if you cannot restrict rows in your SQL there is little point putting a filter in. You may as well put the filtering logic into the tMap. The tMap will allow you to restrict output rows based on inner joins or outer joins. The only reason I suggested filtering data in your SQL queries is that a lot of the time people just dump everything to the Talend job and filter there. This is incredibly inefficient if you can reduce your dataset at the database end. A database will filter data much quicker than Java.&amp;nbsp;</description>
    <pubDate>Thu, 26 May 2016 09:30:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-26T09:30:02Z</dc:date>
    <item>
      <title>[resolved] Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365934#M129485</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I currently have a SQL query that I need to put into a Talend job.&lt;BR /&gt;This query has 2 tables, table A and B and the WHERE clause in the query is as follows&lt;BR /&gt;WHERE TableA.Field_1 = TableB.Field_1&lt;BR /&gt;AND (TableA.Field_2 &amp;lt;&amp;gt; TableB.Field_2&lt;BR /&gt;OR TableA.Field_3 &amp;lt;&amp;gt; TableB.Field_3)&lt;BR /&gt;How can I translate this into a Talend job?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 14:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365934#M129485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365935#M129486</link>
      <description>If your source database is Oracle, just use tOracleInput and write ur customs query in the query section and click guess schema. Make sure you specify field names in your select. Also leave the table name option blank ("") in your tOracleInput component, the table names specified in your query should be good to select the data.</description>
      <pubDate>Tue, 24 May 2016 15:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365935#M129486</guid>
      <dc:creator>vivekjayapalan</dc:creator>
      <dc:date>2016-05-24T15:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365936#M129487</link>
      <description>Just copy and paste your SQL query into a tOracleInput component, wrap in double quotes and configure your schema to be exactly the same as your "Select". Basically the t{Database}Input components just fire whatever SQL query you need to your database. The query is wrapped in quotes because it is essentially a Java String. This gives you the advantage of being able to dynamically change the query at runtime.</description>
      <pubDate>Tue, 24 May 2016 15:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365936#M129487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-24T15:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365937#M129488</link>
      <description>Thanks but the join I am creating in the job is between an Oracle database table and MSSql database table.
&lt;BR /&gt;So writing a query in the t[Database]Input component will not work.
&lt;BR /&gt;I need to use a tMap to join the data from these two tables.
&lt;BR /&gt;Will writing the WHERE clause fields in the Filter expression of the lookup table work?</description>
      <pubDate>Wed, 25 May 2016 11:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365937#M129488</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T11:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365938#M129489</link>
      <description>OK, that was an important bit of information that was left out of the question. In which case, query using a tOracleInput and tMSSQLInput. The Oracle component for the Oracle table and the MSSQL component for the MSSQL table. I advise filtering your data as much as you can here. Then use a tMap to carry out the join conditions.</description>
      <pubDate>Wed, 25 May 2016 12:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365938#M129489</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-25T12:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365939#M129490</link>
      <description>@rhall_2.0:&amp;nbsp; 
&lt;BR /&gt;What if the filtering done needs to compare the fields from both these tables?&amp;nbsp; 
&lt;BR /&gt;In this case the query in the tOracleInput and tMSSqlInput components would not have a WHERE clause.&amp;nbsp; 
&lt;BR /&gt;So is it a good idea not to make a join between these two tables in the tMap component. 
&lt;BR /&gt;But put a filter expression that uses the fields of both these tables in the Filter expression box of the incoming row that is designated as lookup?</description>
      <pubDate>Thu, 26 May 2016 08:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365939#M129490</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T08:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Converting WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365940#M129491</link>
      <description>To be honest, if you cannot restrict rows in your SQL there is little point putting a filter in. You may as well put the filtering logic into the tMap. The tMap will allow you to restrict output rows based on inner joins or outer joins. The only reason I suggested filtering data in your SQL queries is that a lot of the time people just dump everything to the Talend job and filter there. This is incredibly inefficient if you can reduce your dataset at the database end. A database will filter data much quicker than Java.&amp;nbsp;</description>
      <pubDate>Thu, 26 May 2016 09:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Converting-WHERE-clause/m-p/2365940#M129491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-26T09:30:02Z</dc:date>
    </item>
  </channel>
</rss>

