<?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 Identify Last Row in tDBinput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Identify-Last-Row-in-tDBinput/m-p/2347108#M114424</link>
    <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have a sequencial job as below image. For each row it should work. But I need to know how to identify whether it is the last row from the selected rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Heshan Karunaratne&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 16:53:41 GMT</pubDate>
    <dc:creator>heshkaru</dc:creator>
    <dc:date>2023-06-01T16:53:41Z</dc:date>
    <item>
      <title>Identify Last Row in tDBinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Identify-Last-Row-in-tDBinput/m-p/2347108#M114424</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have a sequencial job as below image. For each row it should work. But I need to know how to identify whether it is the last row from the selected rows?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Heshan Karunaratne&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 16:53:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Identify-Last-Row-in-tDBinput/m-p/2347108#M114424</guid>
      <dc:creator>heshkaru</dc:creator>
      <dc:date>2023-06-01T16:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Last Row in tDBinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Identify-Last-Row-in-tDBinput/m-p/2347109#M114425</link>
      <description>&lt;P&gt;Hi @Heshan Karunaratne​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what is your use case, but I'd suggest you try the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Store the data extracted from tDBInput using a tHashOutput  (do this before the subjob shown in the image you sent).&lt;/LI&gt;&lt;LI&gt;Then use a tHashInput to read the dataset stored in memory (just replace your current tDBInput by a tHashInput).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way you would know exactly how many rows are stored in memory before processing the dataset.&lt;/P&gt;&lt;P&gt;You could add a sequential column to make it easier to know if the current row is the last row in your dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Anselmo&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 00:23:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Identify-Last-Row-in-tDBinput/m-p/2347109#M114425</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-06-02T00:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identify Last Row in tDBinput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Identify-Last-Row-in-tDBinput/m-p/2347110#M114426</link>
      <description>&lt;P&gt;I am not sure what you are trying to do, but maybe this will help idk.&lt;/P&gt;&lt;P&gt;What you can do is use the tAggregate Component and use the "last" function. You wil get the last row of every selected rows. so if you selected 10 rows, you wil get the 10th row.&lt;/P&gt;&lt;P&gt;(I would recommend to use the tHashInput/Output as the first comment said.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000htbX9AAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150940iDA980DE8EDCCB1C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000htbX9AAI.png" alt="0695b00000htbX9AAI.png" /&gt;&lt;/span&gt;​&lt;/P&gt;&lt;P&gt;Click the multi rows add button.  Set the function to last, set input to whatever column your requirements are.  Then click ok. Set it into a tLogRow and BAM!!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000htbXJAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141185iF2902D150049B2F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000htbXJAAY.png" alt="0695b00000htbXJAAY.png" /&gt;&lt;/span&gt;​&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Vader out &lt;span class="lia-unicode-emoji" title=":flexed_biceps:"&gt;💪&lt;/span&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Identify-Last-Row-in-tDBinput/m-p/2347110#M114426</guid>
      <dc:creator>Lord-Vader</dc:creator>
      <dc:date>2023-06-02T09:29:37Z</dc:date>
    </item>
  </channel>
</rss>

