<?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: Getting max() for a column in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Getting-max-for-a-column/m-p/2203606#M4834</link>
    <description>Ok so first make a context variable in ur repository and add it to your project.&lt;BR /&gt;then add following components after your input.&lt;BR /&gt;tMSSqlInput (or another input depending on how u get ur data) ==&amp;gt; tAggregateRow ==&amp;gt; tJavaRow&lt;BR /&gt;&lt;BR /&gt;tMSSqlInput: ur table input in a query. So no max() yet.&lt;BR /&gt;tAggregateRow: In operations add a column. Choose ur Process_id as input column. and choose max as the function.&lt;BR /&gt;tJavaRow: Assign the value from the input to your context variable. &lt;BR /&gt;Example: context.MaxProcess_id= input_row.process_id;&lt;BR /&gt;MaxProcess_id =&amp;gt; is ur context variable made.&lt;BR /&gt;Good luck.</description>
    <pubDate>Tue, 04 Jan 2011 15:43:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-04T15:43:49Z</dc:date>
    <item>
      <title>Getting max() for a column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-max-for-a-column/m-p/2203605#M4833</link>
      <description>Hi &lt;BR /&gt;I have scenario, &lt;BR /&gt;have table with 2 columns, process_id and Job_name&lt;BR /&gt;and i have 10 records with same job names&lt;BR /&gt;i need to get latest record, that is like select max(process_id) from Table1&lt;BR /&gt;process_id is sequentially generated using sequence  &lt;BR /&gt;or select process_id, Job_name from table1 a where process_id = (select max(process_id) from table1 b where a.job_name = b.job_name)&lt;BR /&gt;output should be only 1 record.&lt;BR /&gt;Can anyone help me on this, on how to do in talend,&lt;BR /&gt;i tried using taggregator component but it is giving multiple records..&lt;BR /&gt;Thanks,&lt;BR /&gt;Vivek Jayapalan</description>
      <pubDate>Sat, 16 Nov 2024 13:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-max-for-a-column/m-p/2203605#M4833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting max() for a column</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Getting-max-for-a-column/m-p/2203606#M4834</link>
      <description>Ok so first make a context variable in ur repository and add it to your project.&lt;BR /&gt;then add following components after your input.&lt;BR /&gt;tMSSqlInput (or another input depending on how u get ur data) ==&amp;gt; tAggregateRow ==&amp;gt; tJavaRow&lt;BR /&gt;&lt;BR /&gt;tMSSqlInput: ur table input in a query. So no max() yet.&lt;BR /&gt;tAggregateRow: In operations add a column. Choose ur Process_id as input column. and choose max as the function.&lt;BR /&gt;tJavaRow: Assign the value from the input to your context variable. &lt;BR /&gt;Example: context.MaxProcess_id= input_row.process_id;&lt;BR /&gt;MaxProcess_id =&amp;gt; is ur context variable made.&lt;BR /&gt;Good luck.</description>
      <pubDate>Tue, 04 Jan 2011 15:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Getting-max-for-a-column/m-p/2203606#M4834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-04T15:43:49Z</dc:date>
    </item>
  </channel>
</rss>

