<?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: Use Sql like operator in tJava in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290437#M63719</link>
    <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 13:50:47 GMT</pubDate>
    <dc:creator>NBen15</dc:creator>
    <dc:date>2022-03-11T13:50:47Z</dc:date>
    <item>
      <title>Use Sql like operator in tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290433#M63715</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1- I want to use a regular expression in the tJava component, I extract a field from the database then I check if it is in this format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F0*0*-03* the stars represent a character&lt;/P&gt;&lt;P&gt;I did this in sql with the following query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from sales where product like ''F0_0_-03_'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this with a tJava?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) - I get a field from the database and in output I declared this field in BIG DECIMAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example :&lt;/P&gt;&lt;P&gt;input: 4.00000000000000000&lt;/P&gt;&lt;P&gt;output: 4,000,000,000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have an output like 4,000000000000 with only one comma, I checked the separator option in my excel file (tFileOutputExcel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PJytEAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145639iB7FED918A16F0C45/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PJytEAAT.png" alt="0695b00000PJytEAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290433#M63715</guid>
      <dc:creator>NBen15</dc:creator>
      <dc:date>2024-11-15T23:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sql like operator in tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290434#M63716</link>
      <description>&lt;P&gt;For the regex, this is a very quick and basic example of what I think will work....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(F0).*(0).*(-03).*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can test regular expressions here....&lt;/P&gt;&lt;P&gt;https://regex101.com/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your Excel component you have set the thousands separator. I think you have an issue here with your system config and your source and target data. You will need to identify what your system decimal and thousand separators are as I suspect there is some misalignment here given the numbers you are showing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 14:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290434#M63716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-10T14:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sql like operator in tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290435#M63717</link>
      <description>&lt;P&gt;Hi , to complete what @Richard Hall​&amp;nbsp;says if you want just one character instead of _ :&lt;/P&gt;&lt;P&gt;"F0.0.-03."&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 16:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290435#M63717</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2022-03-10T16:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sql like operator in tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290436#M63718</link>
      <description>&lt;P&gt;Thank you for your feedback it works &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 13:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290436#M63718</guid>
      <dc:creator>NBen15</dc:creator>
      <dc:date>2022-03-11T13:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Use Sql like operator in tJava</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290437#M63719</link>
      <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 13:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-Sql-like-operator-in-tJava/m-p/2290437#M63719</guid>
      <dc:creator>NBen15</dc:creator>
      <dc:date>2022-03-11T13:50:47Z</dc:date>
    </item>
  </channel>
</rss>

