<?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. :Re: SQL Statements in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160908#M35001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be useful to know what error it is producing and what the load script entry looks like, i.e. does it go something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table1:&lt;BR /&gt;load *&lt;BR /&gt;from sql select count(a.nmat)&lt;BR /&gt; from rhpagent a&lt;BR /&gt; left join rhfnom f on f.cdos = a.cdos and&lt;BR /&gt; f.nume = '1' and f.cacc = a.nato and&lt;BR /&gt; f.ctab = 4&lt;BR /&gt; left join rhfnom f1 on f1.cdos = a.cdos and&lt;BR /&gt; f1.nume = '1' and f1.cacc = a.cat and&lt;BR /&gt; f1.ctab = 8&lt;BR /&gt; where a.cdos = '01' and a.nato = '001' and a.cat = '02'&lt;BR /&gt; and a.dtes &amp;lt; to_date('01/01/2010');&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Aug 2010 18:15:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-08-14T18:15:41Z</dc:date>
    <item>
      <title>SQL Statements in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160905#M34998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to use the SQL complex requests in qlikview.&lt;/P&gt;&lt;P&gt;An exemple of using statement JOIN is welcome.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 13:29:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160905#M34998</guid>
      <dc:creator />
      <dc:date>2010-08-14T13:29:02Z</dc:date>
    </item>
    <item>
      <title>SQL Statements in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160906#M34999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From my experience it is usually more efficient to perform the join in the load script than the sql select statement.&lt;/P&gt;&lt;P&gt;Qlikview supports all manner of joins (left/right/inner) and becasue the function is being performed in memory usuing qlikview's own algorithms it is usually much faster e.g. something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table1:&lt;BR /&gt;load primarykey,a,b,c;&lt;BR /&gt;from sql select * from dbo.table1;&lt;BR /&gt;right join (table1)&lt;BR /&gt;load primarykey,d,e,f;&lt;BR /&gt;from sql select * from dbo.table2;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;does the same as sql statement:&lt;/P&gt;&lt;P&gt;"select primarykey,a,b,c,d,e,f from dbo.table1 right join dbo.table2 on table1.primarykey=table2.primarykey "&lt;/P&gt;&lt;P&gt;the syntax is from memory so there may be comma or colon misplacements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 16:00:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160906#M34999</guid>
      <dc:creator />
      <dc:date>2010-08-14T16:00:44Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: SQL Statements in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160907#M35000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I run this statement in my back and I QlikView errors in TOAD FOR ORACLE, however it works correctly.&lt;/P&gt;&lt;P&gt;&lt;B&gt;select count(a.nmat)&lt;BR /&gt; from rhpagent a&lt;BR /&gt; left join rhfnom f on f.cdos = a.cdos and&lt;BR /&gt; f.nume = '1' and f.cacc = a.nato and&lt;BR /&gt; f.ctab = 4&lt;BR /&gt; left join rhfnom f1 on f1.cdos = a.cdos and&lt;BR /&gt; f1.nume = '1' and f1.cacc = a.cat and&lt;BR /&gt; f1.ctab = 8&lt;BR /&gt; where a.cdos = '01' and a.nato = '001' and a.cat = '02'&lt;BR /&gt; and a.dtes &amp;lt; to_date('01/01/2010');&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;What to do in this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 17:00:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160907#M35000</guid>
      <dc:creator />
      <dc:date>2010-08-14T17:00:21Z</dc:date>
    </item>
    <item>
      <title>Re. :Re: SQL Statements in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160908#M35001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be useful to know what error it is producing and what the load script entry looks like, i.e. does it go something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table1:&lt;BR /&gt;load *&lt;BR /&gt;from sql select count(a.nmat)&lt;BR /&gt; from rhpagent a&lt;BR /&gt; left join rhfnom f on f.cdos = a.cdos and&lt;BR /&gt; f.nume = '1' and f.cacc = a.nato and&lt;BR /&gt; f.ctab = 4&lt;BR /&gt; left join rhfnom f1 on f1.cdos = a.cdos and&lt;BR /&gt; f1.nume = '1' and f1.cacc = a.cat and&lt;BR /&gt; f1.ctab = 8&lt;BR /&gt; where a.cdos = '01' and a.nato = '001' and a.cat = '02'&lt;BR /&gt; and a.dtes &amp;lt; to_date('01/01/2010');&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Aug 2010 18:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Statements-in-Qlikview/m-p/160908#M35001</guid>
      <dc:creator />
      <dc:date>2010-08-14T18:15:41Z</dc:date>
    </item>
  </channel>
</rss>

