<?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 Using function in SQL select Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690011#M249851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlikview load script, I am trying to use a user defined function in a SQL select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL select field1,&lt;/P&gt;&lt;P&gt;user_function(field2) as derived_field2&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I keep on getting error - QVX_UNEXPECTED_END_OF_DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limitation in above usage - user_function(field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query runs fine in sql and the qlikview user has execute rights on the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 11:01:38 GMT</pubDate>
    <dc:creator>abeyphilip</dc:creator>
    <dc:date>2014-10-09T11:01:38Z</dc:date>
    <item>
      <title>Using function in SQL select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690011#M249851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Qlikview load script, I am trying to use a user defined function in a SQL select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL select field1,&lt;/P&gt;&lt;P&gt;user_function(field2) as derived_field2&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I keep on getting error - QVX_UNEXPECTED_END_OF_DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limitation in above usage - user_function(field2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The query runs fine in sql and the qlikview user has execute rights on the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 11:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690011#M249851</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2014-10-09T11:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using function in SQL select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690012#M249852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This user_function is not a QlikView script function, is it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the account that is specified in the CONNECT statement allowed to execute this user_function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 12:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690012#M249852</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2014-10-09T12:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using function in SQL select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690013#M249853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Peter for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user_function is a custom function created in the source Oracle database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the user used to connect have the execute privileges on the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 12:20:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690013#M249853</guid>
      <dc:creator>abeyphilip</dc:creator>
      <dc:date>2014-10-09T12:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using function in SQL select Query</title>
      <link>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690014#M249854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried and it seems possible to use function; my oracle function is very, very simple &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;OLEDB CONNECT32 TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=True;User ID=xxxxxx;Data Source=dev11;Extended Properties=""] (XPassword is xxxxxxxxx);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;select &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; deptno, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; func(deptno) as newfield,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dname &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from test.dept;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CREATE OR REPLACE FUNCTION&amp;nbsp; func (dept&amp;nbsp;&amp;nbsp; number)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RETURN varchar2 IS&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;BEGIN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; RETURN 'aaaaaa';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;END func;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 17:54:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-function-in-SQL-select-Query/m-p/690014#M249854</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-10-09T17:54:44Z</dc:date>
    </item>
  </channel>
</rss>

