<?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: Extraction logic in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339262#M107428</link>
    <description>&lt;P&gt;Thanks for your time and inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lot of valuable information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shridhar&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 10:50:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-20T10:50:37Z</dc:date>
    <item>
      <title>Extraction logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339256#M107422</link>
      <description>&lt;P&gt;&amp;nbsp;Extraction logic: Extract the data from oracle to stage table.&lt;BR /&gt;&lt;BR /&gt;1) what is best way to write below code in talend.&lt;BR /&gt;&lt;BR /&gt;SELECT f_amt,&lt;BR /&gt;l_amt,&lt;BR /&gt;NULL flag,&lt;BR /&gt;NULL id,&lt;BR /&gt;batch_no batch_no,&lt;BR /&gt;ac_branch t_br_code,&lt;BR /&gt;rela_acc related_acc,&lt;BR /&gt;drcr_ind drcr_ind&lt;BR /&gt;FROM rec_hist a, rec_tab_hist s&lt;BR /&gt;WHERE a.trn_ref_no = s.trn_ref_no&lt;BR /&gt;AND a.trn_dt = (SELECT MAX(trunc(starttime)) FROM xyz)&lt;BR /&gt;AND a.ac_no IN (SELECT VALUE&lt;BR /&gt;FROM rec_tab_process_param&lt;BR /&gt;WHERE pro_name = 'MTN'&lt;BR /&gt;AND param_name = 'CODE')&lt;BR /&gt;UNION&lt;BR /&gt;&lt;SPAN&gt;SELECT f_amt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;l_amt,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NULL flag,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NULL id,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;batch_no batch_no,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ac_branch t_br_code,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rela_acc related_acc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;drcr_ind drcr_ind&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM rec_hist a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE a.trn_ref_no = s.trn_ref_no&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND a.trn_dt = (SELECT MAX(trunc(starttime)) FROM xyz)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND a.ac_no IN (SELECT VALUE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM rec_tab_process_param&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;WHERE pro_name = 'MTN'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AND param_name = 'CODE')&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 05:08:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339256#M107422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T05:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339257#M107423</link>
      <description>&lt;P&gt;Take the whole SQL statement and put it in tOracleInput component. &amp;nbsp;If it need parameterization, then use context variables or globalMap variables to build the whole string. &amp;nbsp;But put it in the query part of the tOracleInput. &amp;nbsp;This way you leverage your DB power to extract only what you need. &amp;nbsp;That will be the fastest way. &amp;nbsp;And turn on the cursors in the Oracle component.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 08:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339257#M107423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T08:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339258#M107424</link>
      <description>&lt;P&gt;Thanks for valuable input.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please give me example on&amp;nbsp;&lt;SPAN&gt;parameterization using&amp;nbsp;context variables or globalMap variables.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;and &amp;nbsp;one more point as you said,&amp;nbsp;&amp;nbsp;turn on the cursors in the Oracle component.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In advance setting "Use cursor" ? How it will faster. Can you please elaborate&amp;nbsp;few points on this option.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Shridhar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 08:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339258#M107424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T08:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339259#M107425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query statement is just a string. &amp;nbsp;You will build your string with variables concatenated to it&lt;/P&gt;&lt;P&gt;"Select blabla from table where column=" + context.somevariable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turning on the cursors is 1 checkbox away:-) &amp;nbsp;You can easily test it yourself on your system to identify the performance difference. Depending on what your are doing, you will see the performance difference. &amp;nbsp;With Oracle, our experience is that using cursors is faster.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 09:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339259#M107425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T09:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339260#M107426</link>
      <description>&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using context variable or&amp;nbsp;&lt;SPAN&gt;globalMap variables, which is best way to do any examples.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shridhar&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 10:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339260#M107426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T10:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339261#M107427</link>
      <description>&lt;P&gt;globalMap if you want keep control of the variables within the Job. &amp;nbsp;Context variable if you want to allow extenal values to be passed to the job when it is started. &amp;nbsp;I generally recommend globalMap to avoid having too many context variables. &amp;nbsp;Context variables should be kept to a minimum. &amp;nbsp;As per defensive programming, if you don't want sql injection issues, then you will use globalMap and control the values in your variables:-) &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 10:35:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339261#M107427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T10:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extraction logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339262#M107428</link>
      <description>&lt;P&gt;Thanks for your time and inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lot of valuable information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shridhar&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 10:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extraction-logic/m-p/2339262#M107428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-20T10:50:37Z</dc:date>
    </item>
  </channel>
</rss>

