<?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: delete from SQL table based on global variable in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/delete-from-SQL-table-based-on-global-variable/m-p/2273652#M50573</link>
    <description>You need to distinguish what is SQL and what are Talend/Java variables. You're missing """ and "+"s in your where clause. 
&lt;BR /&gt;Should be: "select * from table where date1 &amp;gt;= " + globalVar1 + " and date2 &amp;lt;= " + globalVar2 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDDU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127771i371DADC060B255E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDDU.png" alt="0683p000009MDDU.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Mon, 17 Mar 2014 18:27:36 GMT</pubDate>
    <dc:creator>willm1</dc:creator>
    <dc:date>2014-03-17T18:27:36Z</dc:date>
    <item>
      <title>delete from SQL table based on global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-from-SQL-table-based-on-global-variable/m-p/2273651#M50572</link>
      <description>Hi 
&lt;BR /&gt;I am trying delete data from SQL server based on a date range that I am passing to the SQl statement using a global variable. 
&lt;BR /&gt;I am not where my statement is wrong, but it is giving me an error. (see screen shots) 
&lt;BR /&gt;Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
&lt;BR /&gt; Syntax error on token "(", Expression expected after this token 
&lt;BR /&gt; at talenddemosjava.test_delete_data_from_sql_server1_0_1.Test_Delete_Data_From_SQL_Server1.tFileInputExcel_1Process(Test_Delete_Data_From_SQL_Server1.java:3406) 
&lt;BR /&gt;Please help 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDED.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152814i136FBCDA667A4374/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDED.jpg" alt="0683p000009MDED.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDH2.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156613i20A5396BEC1F7F33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDH2.jpg" alt="0683p000009MDH2.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDJ7.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152851i1B1629290C7E1D64/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDJ7.jpg" alt="0683p000009MDJ7.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-from-SQL-table-based-on-global-variable/m-p/2273651#M50572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: delete from SQL table based on global variable</title>
      <link>https://community.qlik.com/t5/Talend-Studio/delete-from-SQL-table-based-on-global-variable/m-p/2273652#M50573</link>
      <description>You need to distinguish what is SQL and what are Talend/Java variables. You're missing """ and "+"s in your where clause. 
&lt;BR /&gt;Should be: "select * from table where date1 &amp;gt;= " + globalVar1 + " and date2 &amp;lt;= " + globalVar2 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDDU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127771i371DADC060B255E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDDU.png" alt="0683p000009MDDU.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 17 Mar 2014 18:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/delete-from-SQL-table-based-on-global-variable/m-p/2273652#M50573</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-03-17T18:27:36Z</dc:date>
    </item>
  </channel>
</rss>

