<?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: Is it possible to use QV functions in SQL and inline in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-use-QV-functions-in-SQL-and-inline/m-p/366002#M704773</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ok, now, you need to have in mind that you cannot use QV funtions in an SQL statement. The function you are trying to use is also supported by any DB engine. You just need to look for the right sintax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you want to use a function in an inline table, you can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;inline_tab:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;load date(test,'YYYY-MM-DD') AS TEST inline [&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;test&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #ff0000;"&gt;'2012-01-01'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 09:41:58 GMT</pubDate>
    <dc:creator>jvitantonio</dc:creator>
    <dc:date>2012-03-23T09:41:58Z</dc:date>
    <item>
      <title>Is it possible to use QV functions in SQL and inline</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-use-QV-functions-in-SQL-and-inline/m-p/366000#M704771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know variables can be used in SQL &amp;amp; inline.&lt;/P&gt;&lt;P&gt;E.g:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Code]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;let var_1 = 1;&lt;/P&gt;&lt;P&gt;sql_tab:&lt;/P&gt;&lt;P&gt;SQL select name from employee where id=$(var_1);&lt;/P&gt;&lt;P&gt;inline_tab:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;test&lt;/P&gt;&lt;P&gt;$(var_1)&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[/Code]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, that means I have to define many variables, too many variables will be hard to management.&lt;/P&gt;&lt;P&gt;So, is it possible to use QV functions in SQL &amp;amp; inline? Below is the example, but it doesn't work.&lt;/P&gt;&lt;P&gt;E.g:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Code]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sql_tab:&lt;/P&gt;&lt;P&gt;SQL select * from emp_salary where salary_date=&lt;SPAN style="color: #ff0000;"&gt;Date#('2012-01-01','YYYY-MM-DD')&lt;/SPAN&gt;;&lt;SPAN style="color: #339966;"&gt; //highlighted in red is a function of QV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inline_tab:&lt;/P&gt;&lt;P&gt;load * inline [&lt;/P&gt;&lt;P&gt;test&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Date#('2012-01-01','YYYY-MM-DD')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[/Code]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I also tried using $() around the QV function, not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 02:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-use-QV-functions-in-SQL-and-inline/m-p/366000#M704771</guid>
      <dc:creator />
      <dc:date>2012-03-23T02:58:08Z</dc:date>
    </item>
    <item>
      <title>Is it possible to use QV functions in SQL and inline</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-use-QV-functions-in-SQL-and-inline/m-p/366001#M704772</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;You cannot use QV functions in SQL statements because these are database specific, i.e you can use only sql function .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for inline load you can try as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;Load Date#(Month,'MMM') as Month_new Resident&amp;nbsp; tech1_inline;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where tech1_inline is an inline table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Arun Goel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 09:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-use-QV-functions-in-SQL-and-inline/m-p/366001#M704772</guid>
      <dc:creator />
      <dc:date>2012-03-23T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use QV functions in SQL and inline</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-use-QV-functions-in-SQL-and-inline/m-p/366002#M704773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, ok, now, you need to have in mind that you cannot use QV funtions in an SQL statement. The function you are trying to use is also supported by any DB engine. You just need to look for the right sintax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if you want to use a function in an inline table, you can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;inline_tab:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;load date(test,'YYYY-MM-DD') AS TEST inline [&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;test&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;SPAN style="color: #ff0000;"&gt;'2012-01-01'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 09:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-use-QV-functions-in-SQL-and-inline/m-p/366002#M704773</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2012-03-23T09:41:58Z</dc:date>
    </item>
  </channel>
</rss>

