<?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: SQL Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377038#M420306</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think you can start with 2 tables and check if you get a result&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select count(*)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;order_line_item oli,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;patron_order po&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;oli.order_id = po.order_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if you get a result (count &amp;gt; 0) add the filter (bold) on the 2 tables&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select count(*)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;order_line_item oli,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;patron_order po&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;oli.order_id = po.order_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and trunc(po.created_date) &amp;gt;= ('01-JAN-2017')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and trunc(po.created_date) &amp;lt;= ('08-APR-2018')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and oli.market_type_code = 'P'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and oli.transaction_type_code in ( 'SA', 'ES', 'CS' )&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if you get a result add another table and the join with the previous 2 tables&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;maybe&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;table: agency a&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;join: and po.created_by_agency_id&amp;nbsp; = a.agency_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and so on until you have all the tables in the query; when you get 0 rows as result you should understand where is the problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Oct 2017 20:44:18 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2017-10-16T20:44:18Z</dc:date>
    <item>
      <title>SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377026#M420294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to load in data via a SQL connection. The connection is good and I can load in some queries, however, when I attempt to load in this query, the load is successful, however no data populates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an error in my script? Seems to get stuck after the 'SELECT' portion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;po.created_date, es.last_updated_date, e.event_code, &lt;/P&gt;&lt;P&gt;e.event_date, a.agency_code, bt.buyer_type_code, bt.description buyer_type_desc,&lt;/P&gt;&lt;P&gt;c.channel_code, c.description channel_desc, ps.price_scale_code,&lt;/P&gt;&lt;P&gt;ps.description price_scale_desc, es.price, sec.section_code, s.row_, s.seat_number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from &lt;/P&gt;&lt;P&gt;agency a, buyer_type bt, channel c, event e, event_category ec, event_seat es, order_line_item oli,&lt;/P&gt;&lt;P&gt;patron_order po, price_scale ps, seat s, section sec&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;oli.order_id = po.order_id &lt;/P&gt;&lt;P&gt;and oli.usage_event_id = e.event_id &lt;/P&gt;&lt;P&gt;and es.event_id = e.event_id &lt;/P&gt;&lt;P&gt;and es.order_id = po.order_id&lt;/P&gt;&lt;P&gt;and es.order_line_item_id = oli.order_line_item_id&lt;/P&gt;&lt;P&gt;and po.created_by_agency_id&amp;nbsp; = a.agency_id&lt;/P&gt;&lt;P&gt;and a.channel_id = c.channel_id&lt;/P&gt;&lt;P&gt;and e.event_category_id = ec.event_category_id&lt;/P&gt;&lt;P&gt;and sec.section_id = es.section_id&lt;/P&gt;&lt;P&gt;and s.seat_id = es.seat_id&lt;/P&gt;&lt;P&gt;and es.buyer_type_id = bt.buyer_type_id&lt;/P&gt;&lt;P&gt;and ps.price_scale_id = es.price_scale_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and trunc(po.created_date) &amp;gt;= ('01-JAN-2017')&lt;/P&gt;&lt;P&gt;and trunc(po.created_date) &amp;lt;= ('08-APR-2018')&lt;/P&gt;&lt;P&gt;and oli.market_type_code = 'P'&lt;/P&gt;&lt;P&gt;and oli.transaction_type_code in ( 'SA', 'ES', 'CS' )&amp;nbsp;&amp;nbsp; -- sale, claimsale or exchangesale&lt;/P&gt;&lt;P&gt;and c.channel_code in ( 'BOXOFF', 'INTERNET', 'PHONE' )&lt;/P&gt;&lt;P&gt;and ec.event_category_code = 'HOCKEY'&lt;/P&gt;&lt;P&gt;and e.event_id &amp;gt;= '4461' and e.event_id &amp;lt;= '4502' &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 18:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377026#M420294</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-10-16T18:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377027#M420295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be "SQL SELECT ..."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377027#M420295</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-10-16T19:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377028#M420296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried to add this in front of SELECT, however I still get the same result. My other queries do not have SQL in front of the select and they still produce data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377028#M420296</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-10-16T19:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377029#M420297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe missing ";" somewhere?&lt;/P&gt;&lt;P&gt;Have you checked this query returns any results in other ODBC client?&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377029#M420297</guid>
      <dc:creator>tomasz_tru</dc:creator>
      <dc:date>2017-10-16T19:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377030#M420298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this script give any results when you run in SQL environment i mean Management Studio?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377030#M420298</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-16T19:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377031#M420299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run the query in 'Oracle SQL Developer' the query produces the results that I expect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377031#M420299</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-10-16T19:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377032#M420300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you get an error, please post the error&lt;/P&gt;&lt;P&gt;if the query ends without returning rows, check the filters (where .....)&lt;/P&gt;&lt;P&gt;if the query doesn't end, as you have many tables in the query maybe it's a problem on the database side; you can start with 2 or 3 tables and then add one table at a time or as Tomasz already answered, try with another tool (client)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 19:59:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377032#M420300</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-10-16T19:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377033#M420301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm. Nothing seems to be wrong with the script. Can you try like running only this script. I mean just use your ODBC connection string and just run this single script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC CONNECT32 to ......;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT ......yourSQLscriptHere; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:03:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377033#M420301</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-10-16T20:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377034#M420302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run the query, I do not get an error message, but the re-load script indicates '0 Lines fetched'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377034#M420302</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-10-16T20:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377035#M420303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;When I run the query, I do not get an error message, but the re-load script indicates '0 Lines fetched'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377035#M420303</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-10-16T20:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377036#M420304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;starts with a select count(*) of 2 tables, oli and po with the join&lt;/P&gt;&lt;P&gt;how many rows?&lt;/P&gt;&lt;P&gt;add the filters on oli and po&lt;/P&gt;&lt;P&gt;how many rows?&lt;/P&gt;&lt;P&gt;repeat: add one table, add one table, ..... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377036#M420304</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-10-16T20:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377037#M420305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies, I am very new to SQL scripting. Can you explain what you mean?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:30:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377037#M420305</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-10-16T20:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377038#M420306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I think you can start with 2 tables and check if you get a result&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select count(*)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;order_line_item oli,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;patron_order po&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;oli.order_id = po.order_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if you get a result (count &amp;gt; 0) add the filter (bold) on the 2 tables&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;select count(*)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;order_line_item oli,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;patron_order po&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;oli.order_id = po.order_id&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and trunc(po.created_date) &amp;gt;= ('01-JAN-2017')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and trunc(po.created_date) &amp;lt;= ('08-APR-2018')&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and oli.market_type_code = 'P'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;and oli.transaction_type_code in ( 'SA', 'ES', 'CS' )&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if you get a result add another table and the join with the previous 2 tables&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;maybe&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;table: agency a&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;join: and po.created_by_agency_id&amp;nbsp; = a.agency_id&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and so on until you have all the tables in the query; when you get 0 rows as result you should understand where is the problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:44:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377038#M420306</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-10-16T20:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377039#M420307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I will attempt this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 20:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/1377039#M420307</guid>
      <dc:creator>evansabres</dc:creator>
      <dc:date>2017-10-16T20:45:20Z</dc:date>
    </item>
  </channel>
</rss>

