<?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: Problem with Command LIMIT in query of tDBRow for SQLite in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221864#M15693</link>
    <description>&lt;P&gt;you absolutely right - first SQL construction is wrong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case with MIN(id) is proper,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with original query - it update ALL record with same IDG &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jan 2019 13:06:11 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-01-28T13:06:11Z</dc:date>
    <item>
      <title>Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221859#M15688</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a problem with the word LIMIT in the Query of the tDBRow (for SQLite):&lt;/P&gt;
&lt;P&gt;For example, I have the following Query:&lt;/P&gt;
&lt;P&gt;"&lt;BR /&gt;UPDATE DOL&lt;BR /&gt;SET BlockedQuantityTotal = 200&lt;BR /&gt;WHERE IDG = '" + row3.IDG + "'&lt;BR /&gt;LIMIT 1&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DOL is the Table,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When the Job is ran, I have the error: "&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;near "LIMIT": syntax error&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run this command in a SQLite Tool (for example SQLiteSpy) and this command works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you pleas help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 10:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221859#M15688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-28T10:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221860#M15689</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;as I know UPDATE and DELETE with LIMIT supported&amp;nbsp;not by all&amp;nbsp;sqlite&amp;nbsp;(it must be defined as option&amp;nbsp;when build) -&amp;nbsp;&lt;A href="https://www.sqlite.org/compile.html" target="_self" rel="nofollow noopener noreferrer"&gt;SQLITE_ENABLE_UPDATE_DELETE_LIMIT&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;second, &amp;nbsp;what need to check - what in row3.IDG?&lt;/P&gt;
&lt;P&gt;as I can guess it is string (char/varchar), but what possible values and what final SQL code will be in this case?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 11:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221860#M15689</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-28T11:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221861#M15690</link>
      <description>&lt;P&gt;First, Thanks for ypur answer.&lt;/P&gt;
&lt;P&gt;Then, I'm not an expert with Talend, SQLite and SQL (sorry), where do I have to put this Option? In the Query "box" or somewhere else?&lt;/P&gt;
&lt;P&gt;And, the Command I have written:&lt;/P&gt;
&lt;P&gt;"&lt;BR /&gt;UPDATE DOL&lt;BR /&gt;SET BlockedQuantityTotal = 200&lt;BR /&gt;WHERE IDG = '" + row3.IDG + "'&lt;BR /&gt;LIMIT 1&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Was an example and yes row3.IDG is a String.&lt;/P&gt;
&lt;P&gt;what I want is to Update my Table only on the first row result of the query.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221861#M15690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-28T12:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221862#M15691</link>
      <description>&lt;P&gt;this option must be used when sqlite driver compiled, and no any settings in Talend for this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try next:&lt;/P&gt;
&lt;PRE&gt;"
UPDATE DOL&lt;BR /&gt;SET BlockedQuantityTotal = 200&lt;BR /&gt;WHERE IDG IN (SELECT IDG FROM DOL WHERE IDG = '" + row3.IDG + "' LIMIT 1)
"&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221862#M15691</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-28T12:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221863#M15692</link>
      <description>&lt;P&gt;Hello Vapukov,&lt;/P&gt;
&lt;P&gt;Thanks for your answer but the result is that all the line with the row3.IDG are updated not only the first one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know why it doesn't not only update the first one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I Have tried the following commnd:&lt;/P&gt;
&lt;P&gt;"&lt;BR /&gt;UPDATE DOL&lt;BR /&gt;SET BlockedQuantityTotal = 200&lt;BR /&gt;WHERE id = (SELECT MIN(id) FROM DOL WHERE&lt;BR /&gt;IDG = '" + row3.IDG + "')&lt;BR /&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id is the column withe the unique auto-incremented key for each row of the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This seems to work.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 12:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221863#M15692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-28T12:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221864#M15693</link>
      <description>&lt;P&gt;you absolutely right - first SQL construction is wrong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case with MIN(id) is proper,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;with original query - it update ALL record with same IDG &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 13:06:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221864#M15693</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-28T13:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221865#M15694</link>
      <description>Thanks for your support...</description>
      <pubDate>Mon, 28 Jan 2019 13:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221865#M15694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-28T13:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Command LIMIT in query of tDBRow for SQLite</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221866#M15695</link>
      <description>&lt;P&gt;welcome to the community! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 13:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-Command-LIMIT-in-query-of-tDBRow-for-SQLite/m-p/2221866#M15695</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-01-28T13:09:48Z</dc:date>
    </item>
  </channel>
</rss>

