<?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: Database Lookup in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330265#M99357</link>
    <description>Hi Shong,
&lt;BR /&gt;Please do a favour. Please send me the example which you have tried to the following id.
&lt;BR /&gt;I will create the same schema and try.
&lt;BR /&gt;Email Id:sd.shafiullah@gmail.com
&lt;BR /&gt;Thanks &amp;amp; Regards,
&lt;BR /&gt;Syed</description>
    <pubDate>Fri, 15 Jul 2011 10:31:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-07-15T10:31:14Z</dc:date>
    <item>
      <title>Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330245#M99337</link>
      <description>Hi, 
&lt;BR /&gt;I have a process to fetch the data from data base and write it to a file. 
&lt;BR /&gt;Requirement as follows 
&lt;BR /&gt;Fetch the data from MAIN table, for every record I need to have a lookup into another table to fetch some more data. 
&lt;BR /&gt;I have created a job as shown in the attachment. Problem here is in the lookup table I have huge data. 
&lt;BR /&gt;When I use query without condition it is working fine, but it is taking more time. 
&lt;BR /&gt;My question is how can I apply the condition that will fetch only required records from lookup table. 
&lt;BR /&gt;Example: 
&lt;BR /&gt;Working Example: 
&lt;BR /&gt;MAIN table query is as follows 
&lt;BR /&gt;"select SECURITY_NAME,SEDOL,CUSIP,ISIN,RIC,msci_security_code from MSCI_DNSA where ISO_COUNTRY_SYMBOL='"+(String)globalMap.get("output.IsoCountrySymbol")+"'" 
&lt;BR /&gt;Lookup table query is as follows 
&lt;BR /&gt;"select sec_code,ticker,exchange from SECURITYINFO" 
&lt;BR /&gt;Not working Example: 
&lt;BR /&gt;MAIN table query is as follows 
&lt;BR /&gt;"select SECURITY_NAME,SEDOL,CUSIP,ISIN,RIC,msci_security_code from MSCI_DNSA where ISO_COUNTRY_SYMBOL='"+(String)globalMap.get("output.IsoCountrySymbol")+"'" 
&lt;BR /&gt;Lookup table query is as follows 
&lt;BR /&gt;"select sec_code,ticker,exchange from SECURITYINFO where sec_code='"+(String)globalMap.get("row3.msci_security_code")+"'" 
&lt;BR /&gt;Can you please suggest on this. 
&lt;BR /&gt;Thanks &amp;amp; Regards, 
&lt;BR /&gt;Syed</description>
      <pubDate>Sat, 16 Nov 2024 12:48:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330245#M99337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330246#M99338</link>
      <description>are these in the same DB?</description>
      <pubDate>Wed, 13 Jul 2011 08:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330246#M99338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-13T08:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330247#M99339</link>
      <description>Hi,&lt;BR /&gt;I have both requirement.&lt;BR /&gt;Yes, they are in same DB but different schemas.&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Syed</description>
      <pubDate>Wed, 13 Jul 2011 08:59:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330247#M99339</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-13T08:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330248#M99340</link>
      <description>Hi Syed
&lt;BR /&gt;Have a try to design the job as below and see if it has a bit improvement of performance, 
&lt;BR /&gt;......tOracleInput(msci_dnia)--row3--tFlowToIterate--iterate---tFixedFlowInput---main--tMap--main--tFileOutputDelimited
&lt;BR /&gt; |
&lt;BR /&gt; lookup
&lt;BR /&gt; |
&lt;BR /&gt; tOracleInput
&lt;BR /&gt;on tFixedFlowInput: define the current iterate row
&lt;BR /&gt;and now you can define the lookup query as below:
&lt;BR /&gt;"select sec_code,ticker,exchange from SECURITYINFO where sec_code='"+(String)globalMap.get("row3.msci_security_code")+"'"
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 13 Jul 2011 10:01:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330248#M99340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-13T10:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330249#M99341</link>
      <description>Hi Shong,
&lt;BR /&gt;I have created the job as you suggested, but still same problem.
&lt;BR /&gt;Lookup is not fetching the corresponding value. I think the globalMap value is not available to Lookup DB.
&lt;BR /&gt;Please Suggest.
&lt;BR /&gt;Thanks &amp;amp; Regards,
&lt;BR /&gt;Syed</description>
      <pubDate>Wed, 13 Jul 2011 11:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330249#M99341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-13T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330250#M99342</link>
      <description>Hi Shong,
&lt;BR /&gt;Can you please suggest to solve this issue.
&lt;BR /&gt;Thanks &amp;amp; Regards,
&lt;BR /&gt;Syed</description>
      <pubDate>Thu, 14 Jul 2011 05:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330250#M99342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330251#M99343</link>
      <description>Hi,&lt;BR /&gt;Please do not post in this topic. Create a new topic.&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Syed</description>
      <pubDate>Thu, 14 Jul 2011 06:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330251#M99343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T06:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330252#M99344</link>
      <description>Hi Syed 
&lt;BR /&gt;Move the tMap component into a child job should be ok, for example: 
&lt;BR /&gt;father job: 
&lt;BR /&gt;......tOracleInput(msci_dnia)--row3--tFlowToIterate--iterate---tRunJob 
&lt;BR /&gt;child job: 
&lt;BR /&gt;tFixedFlowInput---main--tMap--main--tFileOutputDelimited 
&lt;BR /&gt; | 
&lt;BR /&gt; lookup 
&lt;BR /&gt; | 
&lt;BR /&gt; tOracleInput 
&lt;BR /&gt;on tRunjob: call the child job, pass the current iterate row to child job using context variables. 
&lt;BR /&gt;in child job, you can define the lookup query as below: 
&lt;BR /&gt;"select sec_code,ticker,exchange from SECURITYINFO where sec_code='"+context.sec_code+"'" //context.sec_code is one of variables in child job. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 14 Jul 2011 07:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330252#M99344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T07:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330253#M99345</link>
      <description>Hi Shong, 
&lt;BR /&gt;I have a complex job as shown in the attachment. Which can have many lookups. 
&lt;BR /&gt;My requirement should be in one job. Dividing it in many jobs will make the more complex. 
&lt;BR /&gt;The 'tRunJob' is not accepting subjobs, it requires only jobs. 
&lt;BR /&gt;Please suggest me how can I solve this within a job. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks &amp;amp; Regards, 
&lt;BR /&gt;Syed</description>
      <pubDate>Thu, 14 Jul 2011 09:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330253#M99345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T09:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330254#M99346</link>
      <description>Hi
&lt;BR /&gt;As your job showed, you should be able to get the value of one column of row1 and set the query as below on lookup component:
&lt;BR /&gt;"select sec_code,ticker,exchange from SECURITYINFO where sec_code='"+(String)globalMap.get("row1.msci_security_code")+"'"
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 14 Jul 2011 10:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330254#M99346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T10:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330255#M99347</link>
      <description>Hi Shong,
&lt;BR /&gt;I have tried the same, but the problem is lookup component is not part of job process. 
&lt;BR /&gt;Because of lookup component is linking to tMap as a different process, we are not able to get the values which
&lt;BR /&gt;are part of main job.
&lt;BR /&gt;Please suggest on this.
&lt;BR /&gt;Thanks &amp;amp; Regards,
&lt;BR /&gt;Syed</description>
      <pubDate>Thu, 14 Jul 2011 11:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330255#M99347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-14T11:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330256#M99348</link>
      <description>Hi Shong,
&lt;BR /&gt;Please suggest to solve this Issue.
&lt;BR /&gt;Even I have tried with context variables using 'tJava' as shown in the screen shot.
&lt;BR /&gt;This also not working.
&lt;BR /&gt;Thanks &amp;amp; Regards,
&lt;BR /&gt;Syed</description>
      <pubDate>Fri, 15 Jul 2011 05:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330256#M99348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T05:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330257#M99349</link>
      <description>Used the query as follows&lt;BR /&gt;"select sec_code,ticker,exchange from SECURITYINFO where sec_code='"+context.getProperty("sec_code")+"'"</description>
      <pubDate>Fri, 15 Jul 2011 05:35:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330257#M99349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T05:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330258#M99350</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;Please suggest to solve this Issue.&lt;BR /&gt;Even I have tried with context variables using 'tJava' as shown in the screen shot.&lt;BR /&gt;This also not working.&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Syed&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi, 
&lt;BR /&gt;I don't understand it don't also work in tJava component. Is there a column called msci_security_cod in row1? Can you upload a screenshot of schema of row1?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Jul 2011 07:31:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330258#M99350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T07:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330259#M99351</link>
      <description>Hi Shong,
&lt;BR /&gt;Please find the screen shots for the query results from schema.
&lt;BR /&gt;
&lt;BR /&gt;Thanks &amp;amp; Regards,
&lt;BR /&gt;Syed</description>
      <pubDate>Fri, 15 Jul 2011 07:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330259#M99351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T07:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330260#M99352</link>
      <description>Hi
&lt;BR /&gt;Have a try to upcase all column name in schema and query, 
&lt;BR /&gt;msci_security_code to MSCI_SECURITY_CODE, (String)gloalMap.get("MSCI_SECURITY_CODE")
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Jul 2011 08:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330260#M99352</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T08:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330261#M99353</link>
      <description>Hi Shong, 
&lt;BR /&gt;There is no problem in queries because I am able to print the values in 'tJava'. 
&lt;BR /&gt;If you see in one of my screen shot for 'tJava' there I am setting the 'msci_security_code' value in context 
&lt;BR /&gt;and I am retrieving it from context and printing. This is working means I am able to fetch the value from context in 'tJava' 
&lt;BR /&gt;But when I try to fetch the same in lookupDB is null. 
&lt;BR /&gt;I think you understood where I am facing the problem. 
&lt;BR /&gt;Thanks &amp;amp; Regards, 
&lt;BR /&gt;Syed</description>
      <pubDate>Fri, 15 Jul 2011 10:16:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330261#M99353</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T10:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330262#M99354</link>
      <description>Hi Syed
&lt;BR /&gt;Yes, I know your problem! For me, it should work with your job, see attachment, of course, I also tested it on my local machine and it works!
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Jul 2011 10:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330262#M99354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T10:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330263#M99355</link>
      <description>Hi Shong, 
&lt;BR /&gt;There is no problem in queries because I am able to print the values in 'tJava'. 
&lt;BR /&gt;If you see in one of my screen shot for 'tJava' there I am setting the 'msci_security_code' value in context 
&lt;BR /&gt;and I am retrieving it from context and printing. This is working means I am able to fetch the value from context in 'tJava' 
&lt;BR /&gt;But when I try to fetch the same in lookupDB is null. 
&lt;BR /&gt;I think you understood where I am facing the problem. 
&lt;BR /&gt;Thanks &amp;amp; Regards, 
&lt;BR /&gt;Syed</description>
      <pubDate>Fri, 15 Jul 2011 10:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330263#M99355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T10:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Database Lookup</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330264#M99356</link>
      <description>Hi 
&lt;BR /&gt;yes, I know your problem! For me, it should work with your job, see attachment. Of course, I also tested it on my local machine.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 15 Jul 2011 10:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Lookup/m-p/2330264#M99356</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-15T10:25:16Z</dc:date>
    </item>
  </channel>
</rss>

