<?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: Database Query with Context variable Oracle in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212753#M10262</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what version of Oracle do you use?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FETCH FIRST 1 ROWS ONLY - supported only in Oracle 12&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 06:49:05 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-03-29T06:49:05Z</dc:date>
    <item>
      <title>Database Query with Context variable Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212751#M10260</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have a problem with a query in the tDBInput oracle component, the error is as follows: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Exception in component tDBInput_1 (TASK1_PREVALIDACION_PRES_ARL)&lt;/P&gt;
&lt;P&gt;java.sql.SQLSyntaxErrorException: ORA-00933: comando SQL no terminado correctamente&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From what I was reading, it is due to the use of context variables in the query, I would like them to help me know what I have wrong in the following query:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"SELECT NUMDOCCIA,CODIGOCIA&lt;BR /&gt;FROM (&lt;BR /&gt;SELECT 1 AS INDICE,NUMDOCCIA , CODOGOCIA AS CODIGOCIA&lt;BR /&gt;FROM ARL_COMPANIA&lt;BR /&gt;WHERE DIRECTCIA='"+context.DIRECTORIO_CIA+"'&lt;BR /&gt;UNION&lt;BR /&gt;SELECT 2 AS INDICE, NUMDOCCIA , CODOGOCIA AS CODIGOCIA&lt;BR /&gt;FROM ARL_COMPANIA&lt;BR /&gt;WHERE NUMDOCCIA='"+context.NI_ENTIDAD_ARCHIVO+"'&lt;BR /&gt;) D1&lt;BR /&gt;ORDER BY INDICE&lt;BR /&gt;FETCH FIRST 1 ROWS ONLY"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 05:19:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212751#M10260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-29T05:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Database Query with Context variable Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212752#M10261</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP72AAG"&gt;@fredypr_03&lt;/A&gt;&amp;nbsp;,cab you use the below way.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"SELECT NUMDOCCIA,CODIGOCIA&lt;BR /&gt;FROM (&lt;BR /&gt;SELECT 1 AS INDICE,NUMDOCCIA , CODOGOCIA AS CODIGOCIA&lt;BR /&gt;FROM ARL_COMPANIA&lt;BR /&gt;WHERE DIRECTCIA=\'"+context.DIRECTORIO_CIA+"\'&lt;BR /&gt;UNION&lt;BR /&gt;SELECT 2 AS INDICE, NUMDOCCIA , CODOGOCIA AS CODIGOCIA&lt;BR /&gt;FROM ARL_COMPANIA&lt;BR /&gt;WHERE NUMDOCCIA=\'"+context.NI_ENTIDAD_ARCHIVO+"\'&lt;BR /&gt;) D1&lt;BR /&gt;ORDER BY INDICE&lt;BR /&gt;FETCH FIRST 1 ROWS ONLY"&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 06:42:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212752#M10261</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2019-03-29T06:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Database Query with Context variable Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212753#M10262</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what version of Oracle do you use?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FETCH FIRST 1 ROWS ONLY - supported only in Oracle 12&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 06:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212753#M10262</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-29T06:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: Database Query with Context variable Oracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212754#M10263</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;single quotes do not need to be escaped&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but if run the original query in Oracle&amp;nbsp;11g, error&amp;nbsp;text will be exactly as in question&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 06:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Database-Query-with-Context-variable-Oracle/m-p/2212754#M10263</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-29T06:51:25Z</dc:date>
    </item>
  </channel>
</rss>

