<?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/976627#M947496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your load you are loading two fields twice with the same name. QlikView will not accept that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you use "INV_NUM" and "PRODUCT" which you also will be loading since you have a * too you get the duplicate fields names... Try calling them something else and see what happens...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 22:24:09 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-12-22T22:24:09Z</dc:date>
    <item>
      <title>SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/976626#M947494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with a data model based off of a SQL query from Teradata. The code is below. I am getting an ODBC Error. I have 4 other Loads connecting to the same DB without any problem. I have checked the query against Teradata directly and it works perfectly, even as a copy/paste. Can any one help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;SalesByProd:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"ENTRY_DATE"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"PRODUCT"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"INV_NUM"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"ID"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"PRODUCT"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"PACK"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"WH"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"PRODWHID"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"INV_NUM"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"PRODUCT"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Trim&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"PACK"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"PRODUCT"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; *;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT &lt;BR /&gt; "RECORD_ID",&lt;BR /&gt; "SM",&lt;BR /&gt; "WH", &lt;BR /&gt; "ACCT_NUM",&lt;BR /&gt; "PRODUCT",&lt;BR /&gt; "PACK",&lt;BR /&gt; "INV_NUM", &lt;BR /&gt; "post_date", &lt;BR /&gt; "QTY_ORD", &lt;BR /&gt; "QTY_DEL", &lt;BR /&gt; "ENTRY_DATE", &lt;BR /&gt; "ENTRY_TIME", &lt;BR /&gt; "ENTRY_BY", &lt;BR /&gt; "ORD_STATUS", &lt;BR /&gt; "DELMSG",&lt;BR /&gt; "DELDT", &lt;BR /&gt; "DELETE_DT", &lt;BR /&gt; "OR_TIME",&lt;BR /&gt; "DELETED_BY",&lt;BR /&gt; "REASON"&lt;BR /&gt; FROM "PROD_WHOLESALE_VIEWS"."WSale_PDS_ORDERS_COMB"&lt;BR /&gt; WHERE PCAT &amp;gt; 8 and PCAT &amp;lt; 27 and ENTRY_DATE &amp;gt; date - 367; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 21:50:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/976626#M947494</guid>
      <dc:creator />
      <dc:date>2015-12-22T21:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/976627#M947496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your load you are loading two fields twice with the same name. QlikView will not accept that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you use "INV_NUM" and "PRODUCT" which you also will be loading since you have a * too you get the duplicate fields names... Try calling them something else and see what happens...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 22:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/976627#M947496</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-12-22T22:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Load</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/976628#M947498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That solved the problem! I also discovered that the DBAs created several date/time fields that all have the same name but are not relevant to the data. That caused Qlikview to create invalid associations. Wildcard Select statements are not always the best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Petter!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 17:53:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Load/m-p/976628#M947498</guid>
      <dc:creator />
      <dc:date>2015-12-23T17:53:51Z</dc:date>
    </item>
  </channel>
</rss>

