<?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: What kind of Qlik Script 'Support' for Teradata-specific query is there? in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/What-kind-of-Qlik-Script-Support-for-Teradata-specific-query-is/m-p/91107#M465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temporal table? Is it possible to create view that you can just SELECT (...)?&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2018 14:20:22 GMT</pubDate>
    <dc:creator>tomasz_tru</dc:creator>
    <dc:date>2018-10-10T14:20:22Z</dc:date>
    <item>
      <title>What kind of Qlik Script 'Support' for Teradata-specific query is there?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/What-kind-of-Qlik-Script-Support-for-Teradata-specific-query-is/m-p/91106#M464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an RFI for the Teradata-experienced community with regard to whether &lt;SPAN style="font-size: 13.3333px;"&gt;Qlik (notably QlikSense)&lt;/SPAN&gt; 'supports' script syntax for Teradata-specific queries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have Teradata experience, especially in regard to whether Qlik can handle an SQL statement prefix of "validtime as of date 'YYYY-MM-DD' "?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to write a typical WHERE clause, as none of the fields in the table are indexed and the data (table size) will grow with time (it's a historical table). I'm trying to prevent a full table scan and was notified by Teradata experts that this was achievable with a query prefix of "validtime as of date 'YYYY-MM-DD' SEL [...]". I use a Qlik var to get the correct "YYYY-MM-DD" but when I prefix the SQL-Select statement/query with this in the Qlik script, I get an error (&lt;SPAN style="font-size: 10pt;"&gt;"The following error occurred: &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Unknown statement:").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact same statement that Qlik "errors" on, works when copy/pasted into Teradata Studio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have information on the types of Teradata queries supported by Qlik.&lt;/P&gt;&lt;P&gt;Valid Teradata-specific workaround(s) to propose?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your thoughts and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheenu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 12:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/What-kind-of-Qlik-Script-Support-for-Teradata-specific-query-is/m-p/91106#M464</guid>
      <dc:creator>cheenu_janakira</dc:creator>
      <dc:date>2018-10-10T12:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Qlik Script 'Support' for Teradata-specific query is there?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/What-kind-of-Qlik-Script-Support-for-Teradata-specific-query-is/m-p/91107#M465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Temporal table? Is it possible to create view that you can just SELECT (...)?&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 14:20:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/What-kind-of-Qlik-Script-Support-for-Teradata-specific-query-is/m-p/91107#M465</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2018-10-10T14:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: What kind of Qlik Script 'Support' for Teradata-specific query is there?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/What-kind-of-Qlik-Script-Support-for-Teradata-specific-query-is/m-p/91108#M466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomasz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. You lit the right spark.&lt;/P&gt;&lt;P&gt;I'm going to mark your answer as correct so that you get the points. When I was typing out an answer to your reply, I realised my mistake/omission. And "yes", a 'view' is a workaround, although this would have required a JIRA ticket,&amp;nbsp; etc. as I don't have rights/permissions to create anything, only to read DB tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My answer to you was going to be "I am still curious why this doesn't work, as I have passed to the DB server many different things from a Qlik script".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, my Qlik script was "load A, B, C; validtime as of date '$(vBUSINESS_PD)' Select A, B, C from "schema"."table";&lt;/P&gt;&lt;P&gt;I had copy/pasted the queries that were shared with me. I forgot to add "&lt;STRONG&gt;SQL&lt;/STRONG&gt;" to identify what Qlik needed to pass on to the DB server. I realised this when I thought "[...] a&lt;SPAN style="font-size: 13.3333px;"&gt;s I have passed to the DB server many different things from a Qlik script".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, the following script works:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"load A, B, C; &lt;STRONG&gt;SQL&lt;/STRONG&gt; validtime as of date '$(vBUSINESS_PD)' Select A, B, C from "schema"."table";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Cheerio. Thank you for your help and time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;KR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Cheenu&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 15:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/What-kind-of-Qlik-Script-Support-for-Teradata-specific-query-is/m-p/91108#M466</guid>
      <dc:creator>cheenu_janakira</dc:creator>
      <dc:date>2018-10-10T15:19:54Z</dc:date>
    </item>
  </channel>
</rss>

