<?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: SQL query output and passing a default value to the output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204698#M5474</link>
    <description>Thanks , was thinking on similar lines , we will try this and intimate you bro!</description>
    <pubDate>Fri, 14 Apr 2017 04:41:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-14T04:41:20Z</dc:date>
    <item>
      <title>SQL query output and passing a default value to the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204695#M5471</link>
      <description>&lt;P&gt;Dear's,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement , in which i have a sql query &amp;nbsp;and i need to classified the output to default value ex:-TEST&lt;/P&gt;
&lt;P&gt;The sql query has one column and it &amp;nbsp;will fetch me 100 rows with different &amp;nbsp;id's&lt;/P&gt;
&lt;P&gt;Now once i get the output i need to pass a default value 'TEST' to that column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;query &amp;nbsp;is : select * from table where id&amp;lt;=5 , i need to pass this query and generate output as below&lt;/P&gt;
&lt;P&gt;ex: if the query gives me 5 rows , With different values like below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&lt;/P&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;P&gt;5&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My output should be&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ID&lt;/P&gt;
&lt;P&gt;TEST&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TEST&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TEST&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TEST&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TEST&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically i need to classify &amp;nbsp;using the query .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;how shall i do it using talend?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 20:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204695#M5471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-13T20:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query output and passing a default value to the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204696#M5472</link>
      <description>&lt;P&gt;Hi Ami,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It sounds like you want to mask your data. You have two ways:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. Your mapping. A tMap will typically map the input_row.id --&amp;gt; out_row.id. Your mapping expression can be a constant. So out_row_id can be simply mapped to a constant&amp;nbsp;"TEST".&lt;/P&gt; 
&lt;P&gt;2. You can also explore the Data Masking features available in Talend, very flexible and versatile. Watch this video for a quick demo:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A title="Data Masking" href="https://www.youtube.com/watch?v=YTl8IgaoZv8" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=YTl8IgaoZv8&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you want your value to be a parameter, check how to use Context variables here:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A title="Context variables" href="https://help.talend.com/display/TalendOpenStudioforESBUserGuide60EN/3.4.1+How+to+define+context+variables+for+a+Job" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/display/TalendOpenStudioforESBUserGuide60EN/3.4.1+How+to+define+context+variables+for+a+Job&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;HTH&lt;/P&gt; 
&lt;P&gt;Gene&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 21:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204696#M5472</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-13T21:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query output and passing a default value to the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204697#M5473</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Just try to replace your query by this one:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select 'TEST' as ID from table where id&amp;lt;=5&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;TRF&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 21:34:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204697#M5473</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-04-13T21:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query output and passing a default value to the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204698#M5474</link>
      <description>Thanks , was thinking on similar lines , we will try this and intimate you bro!</description>
      <pubDate>Fri, 14 Apr 2017 04:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204698#M5474</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-14T04:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query output and passing a default value to the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204699#M5475</link>
      <description>Thanks for the reply surely i will try out this</description>
      <pubDate>Fri, 14 Apr 2017 04:41:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204699#M5475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-14T04:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query output and passing a default value to the output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204700#M5476</link>
      <description>Dear,&lt;BR /&gt;&lt;BR /&gt;I want to implement this as a incremental job ,&lt;BR /&gt;i want to incrementally pull data from the below query&lt;BR /&gt;&lt;BR /&gt;to Take the unique ID from schema_name.table_name where ID like ‘11%’&lt;BR /&gt;&lt;BR /&gt;I have never used incremental in talend .&lt;BR /&gt;Can you give me steps to build one job ?&lt;BR /&gt;Many Thanks,&lt;BR /&gt;Amit</description>
      <pubDate>Fri, 14 Apr 2017 04:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-query-output-and-passing-a-default-value-to-the-output/m-p/2204700#M5476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-14T04:43:32Z</dc:date>
    </item>
  </channel>
</rss>

