<?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 Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953974#M958366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to reduce the number of field (remove &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px; line-height: 1.5em;"&gt;tp.*, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;c.*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sometimes I got the same error (ODBC read failed) for duplicated field names&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 13:16:26 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-11-06T13:16:26Z</dc:date>
    <item>
      <title>SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953970#M958362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;I am having issues with the below SQL.&amp;nbsp; Any help with pointing me in the direction of the obvious mistake I have made will be much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; l.location_cd as trade_location_cd,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.location_name,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; l.[reference] as trade_location_reference,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tp.*,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c.*&lt;BR /&gt;FROM tempest_tier1.p_edw_trade_physical('%','%','%','%','%','%','Create Dt','2015-01-01','2050-01-01','%','Today','Trade',0) tp&lt;BR /&gt;left outer join tempest_tier1.v_LOCATION l on (l.location_cd = tp.trade_location_cd)&lt;BR /&gt;left outer join tempest_tier1.p_dcf_acl_cost('%','%','%','%','%','%','%','Today','Trade','End Of Day',0,'Create Dt','2015-01-01','2050-01-01') c on (tp.strategy_num = c.strategy_num)&lt;BR /&gt;where (tp.co_cd in ('A') &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or l.[reference] in ('GBR')&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or tp.trade_cmdty_cd in ('Crude') &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or tp.trade_location_cd in ('B'))&lt;BR /&gt;&amp;nbsp; and c.cost_cd not in ('Freight')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953970#M958362</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-06T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953971#M958363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What error you are getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953971#M958363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T13:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953972#M958364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It say ODBC read failed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953972#M958364</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-06T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953973#M958365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that may be becoz of you are using wrong credentials...or connection timeout like that..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:09:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953973#M958365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953974#M958366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to reduce the number of field (remove &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px; line-height: 1.5em;"&gt;tp.*, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.6667px;"&gt;c.*)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Sometimes I got the same error (ODBC read failed) for duplicated field names&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953974#M958366</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-06T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953975#M958367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to reduce the fields and I still get the same error.&amp;nbsp; I think it might be related to the 'left outer join'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953975#M958367</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-06T13:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953976#M958368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is SQL query, remove this &lt;STRONG&gt;Outer&lt;/STRONG&gt; keyword&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953976#M958368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T13:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953977#M958369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Break your query and try to reload it one by one, that might be helpful for you to know where is the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 13:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953977#M958369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-06T13:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Help</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953978#M958370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to break the query down and all parts work ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The left outer join works between tempest_tier1.p_edw_trade_physical and tempest_tier1.v_LOCATION.&amp;nbsp; However the script fails when trying to left outer join to tempest_tier1.p_dct_acl_cost&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 14:47:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Help/m-p/953978#M958370</guid>
      <dc:creator>danielnevitt</dc:creator>
      <dc:date>2015-11-06T14:47:02Z</dc:date>
    </item>
  </channel>
</rss>

