<?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: Breaking down large query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725452#M1067962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace the where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where to_char(&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;TREAT_FROM&lt;/SPAN&gt;, 'YYYY') = $(x);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Sep 2014 17:10:24 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-09-07T17:10:24Z</dc:date>
    <item>
      <title>Breaking down large query</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725450#M1067960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The query I was using started giving me error due to the size. I am using ODBC to get data from Oracle and started getting an error not enough space in Temp. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to break it down into pieces and then combining into one qvd using the following code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Let y = year(today());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;For x=2008 to $(y) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; Med_Clm_Data: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; LOAD *, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; TYPE&amp;amp;' - '&amp;amp;CODE AS ACTIVITY_CODE; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; SQL SELECT * &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; FROM MIMS."CLAIM_HISTORY_VU_NU" &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; where Year(TREAT_FROM) = $(x);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;next x &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Store Med_Clm_Data into [..\QlikviewSource\Med_Clm_data.qvd] (qvd);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;However, now it is giving me error saying that - [Oracle][ODBC][Ora]ORA-00904: "Year": Invalid Identifier&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Would appreciate some help as to what is wrong with the code. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 11:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725450#M1067960</guid>
      <dc:creator />
      <dc:date>2014-09-07T11:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking down large query</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725451#M1067961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;seems to be an oracle and no QV error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe Year is case sensitive? Then try YEAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="_jivemacro_uid_14100938230831035 jive_text_macro jive_macro_code" jivemacro_uid="_14100938230831035"&gt;
&lt;P&gt;where EXTRACT(year FROM &lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;TREAT_FROM&lt;/SPAN&gt;) = &lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;$(x);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 12:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725451#M1067961</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-07T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking down large query</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725452#M1067962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;replace the where clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where to_char(&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 15px;"&gt;TREAT_FROM&lt;/SPAN&gt;, 'YYYY') = $(x);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2014 17:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725452#M1067962</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-09-07T17:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Breaking down large query</title>
      <link>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725453#M1067963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. This worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 05:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Breaking-down-large-query/m-p/725453#M1067963</guid>
      <dc:creator />
      <dc:date>2014-09-10T05:57:57Z</dc:date>
    </item>
  </channel>
</rss>

