<?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: Common Table Expression Not Working in QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Common-Table-Expression-Not-Working-in-QlikView/m-p/1239144#M393754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vishwarath I just tried to take this down.&amp;nbsp; It was my load script.&amp;nbsp; I had additional select command in there.&amp;nbsp; Just as I thought something simple.&amp;nbsp; Sorry to take up your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Dec 2016 21:42:42 GMT</pubDate>
    <dc:creator>carlcimino</dc:creator>
    <dc:date>2016-12-09T21:42:42Z</dc:date>
    <item>
      <title>Common Table Expression Not Working in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Table-Expression-Not-Working-in-QlikView/m-p/1239142#M393752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Hello, I have a common table expression that works in Oracle SQL Developer but does not work when I enter it in the QlickView application.&amp;nbsp; I have a feeling it is something simple but any help would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Carl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;here's the oracle sql developer script that works fine in Oracle:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;With CTE_GETMAXDATE&lt;BR /&gt;as&lt;BR /&gt;(SELECT trim(upper(USERID_C)) USER_ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,MAX(ROW_EXP_D) mdate&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM DBCMLT.CLTRF031_HR_LDAP&lt;BR /&gt;group by USERID_C&lt;BR /&gt;) &lt;/P&gt;&lt;P&gt;SELECT trim(upper(S.USERID_C)) USER_ID , S.EMP_FULL_NA USER_NAME&lt;BR /&gt;FROM DBCMLT.CLTRF031_HR_LDAP S&lt;BR /&gt;&amp;nbsp; inner join CTE_GETMAXDATE M on trim(upper(S.USERID_C))= M.USER_ID and S.ROW_EXP_D = mdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Here's what I have in the QlickView script editor that throws an ORA-00904: : invalid identifier error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt; *;&lt;BR /&gt; &lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;ODBC&lt;/SPAN&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;CONNECT&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;TO&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[ccgesgp;DBQ=ccgesgp]&lt;/SPAN&gt; (&lt;SPAN style="color: #0000ff;"&gt;XUserId&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; ANTFeKNGUBMADFVGKH, &lt;SPAN style="color: #0000ff;"&gt;XPassword&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff;"&gt;is&lt;/SPAN&gt; TTGeVaNGUBMADVVGHG);&lt;BR /&gt; &lt;BR /&gt; UserID:&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;SQL&lt;/STRONG&gt; With CTE_GETMAXDATE&lt;BR /&gt; &lt;BR /&gt; (SELECT trim(upper(USERID_C)) USER_ID&lt;BR /&gt; ,MAX(ROW_EXP_D) mdate&lt;BR /&gt; FROM DBCMLT.CLTRF031_HR_LDAP&lt;BR /&gt; group by USERID_C&lt;BR /&gt; ) &lt;BR /&gt; &lt;BR /&gt; SELECT trim(upper(S.USERID_C)) USER_ID , S.EMP_FULL_NA USER_NAME&lt;BR /&gt; FROM DBCMLT.CLTRF031_HR_LDAP S&lt;BR /&gt; inner join CTE_GETMAXDATE M on trim(upper(S.USERID_C))= M.USER_ID and S.ROW_EXP_D = mdate; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 20:31:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Table-Expression-Not-Working-in-QlikView/m-p/1239142#M393752</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2016-12-09T20:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Common Table Expression Not Working in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Table-Expression-Not-Working-in-QlikView/m-p/1239143#M393753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send a snapshot of your error? And before that can you use Preceding Load like: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;UserID:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt; LOAD *;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; color: #0000ff;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt; With CTE_GETMAXDATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;(SELECT trim(upper(USERID_C)) USER_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;,MAX(ROW_EXP_D) mdate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;FROM DBCMLT.CLTRF031_HR_LDAP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;group by USERID_C&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;SELECT trim(upper(S.USERID_C)) USER_ID , S.EMP_FULL_NA USER_NAME&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;FROM DBCMLT.CLTRF031_HR_LDAP S&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px;"&gt;inner join CTE_GETMAXDATE M on trim(upper(S.USERID_C))= M.USER_ID and S.ROW_EXP_D = mdate;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 20:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Table-Expression-Not-Working-in-QlikView/m-p/1239143#M393753</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-12-09T20:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Common Table Expression Not Working in QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Common-Table-Expression-Not-Working-in-QlikView/m-p/1239144#M393754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vishwarath I just tried to take this down.&amp;nbsp; It was my load script.&amp;nbsp; I had additional select command in there.&amp;nbsp; Just as I thought something simple.&amp;nbsp; Sorry to take up your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Dec 2016 21:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Common-Table-Expression-Not-Working-in-QlikView/m-p/1239144#M393754</guid>
      <dc:creator>carlcimino</dc:creator>
      <dc:date>2016-12-09T21:42:42Z</dc:date>
    </item>
  </channel>
</rss>

