<?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: How to use SQL Lag Function concept in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-SQL-Lag-Function-concept-in-talend/m-p/2312086#M83066</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This sort of thing can be done very easily in a tJavaFlex component, as follows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LagFunctionJob.png" style="width: 581px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lre5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132111iFF1871E356AFB9EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lre5.png" alt="0683p000009Lre5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tFixedFlowInput&amp;nbsp;generates rows with a single Integer column:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFixedFlowInput3.png" style="width: 549px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrfD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154319iB192ECED99B94D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrfD.png" alt="0683p000009LrfD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Add a new column to the output schema of&amp;nbsp;th tJavaFlex component for the&amp;nbsp;LAG value:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlexSchema3.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrEc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143232i61179DA254F36B96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrEc.png" alt="0683p000009LrEc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And the the following code will output the previous (LAG) value, before setting it to the current value of newColumn, which will be available when the next row is processed:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlexCode.png" style="width: 540px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrQU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142055i0B9DF89587451A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrQU.png" alt="0683p000009LrQU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 08:46:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-01T08:46:55Z</dc:date>
    <item>
      <title>How to use SQL Lag Function concept in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-SQL-Lag-Function-concept-in-talend/m-p/2312085#M83065</link>
      <description>&lt;P&gt;Hi Talend Folks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How to use Sql LAG function concept in talend.&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The Lag function gives the previous column values based on ordering.&lt;/SPAN&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;please check below link you will get clear idea for Sql LAG function&lt;/LI&gt;
&lt;LI&gt;&lt;A title="Lag Function" href="http://www.c-sharpcorner.com/UploadFile/f82e9a/lag-and-lead-functions-in-sql-server/" target="_self" rel="nofollow noopener noreferrer"&gt;http://www.c-sharpcorner.com/UploadFile/f82e9a/lag-and-lead-functions-in-sql-server/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;How to do this requirement in tmap component or some other component?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 01 Nov 2017 08:04:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-SQL-Lag-Function-concept-in-talend/m-p/2312085#M83065</guid>
      <dc:creator>RAJ6</dc:creator>
      <dc:date>2017-11-01T08:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SQL Lag Function concept in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-SQL-Lag-Function-concept-in-talend/m-p/2312086#M83066</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This sort of thing can be done very easily in a tJavaFlex component, as follows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LagFunctionJob.png" style="width: 581px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lre5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132111iFF1871E356AFB9EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lre5.png" alt="0683p000009Lre5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tFixedFlowInput&amp;nbsp;generates rows with a single Integer column:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFixedFlowInput3.png" style="width: 549px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrfD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154319iB192ECED99B94D72/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrfD.png" alt="0683p000009LrfD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Add a new column to the output schema of&amp;nbsp;th tJavaFlex component for the&amp;nbsp;LAG value:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlexSchema3.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrEc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143232i61179DA254F36B96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrEc.png" alt="0683p000009LrEc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And the the following code will output the previous (LAG) value, before setting it to the current value of newColumn, which will be available when the next row is processed:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlexCode.png" style="width: 540px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrQU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142055i0B9DF89587451A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrQU.png" alt="0683p000009LrQU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Chris&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 08:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-SQL-Lag-Function-concept-in-talend/m-p/2312086#M83066</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-01T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use SQL Lag Function concept in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-use-SQL-Lag-Function-concept-in-talend/m-p/2312087#M83067</link>
      <description>use sort before that to get lead functionality..</description>
      <pubDate>Fri, 17 Apr 2020 17:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-use-SQL-Lag-Function-concept-in-talend/m-p/2312087#M83067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-17T17:03:26Z</dc:date>
    </item>
  </channel>
</rss>

