<?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: Help with a LOAD followed by Oracle ODBC SQL SELECT in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224796#M77159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is true&lt;/P&gt;&lt;P&gt;For any reason if someone need to to change the case of field names do it in QLikview load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ItemList]:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;I_PART,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I_PART_HASH as I_PART_Hash;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL Select&lt;/P&gt;&lt;P&gt;I_PART,&lt;/P&gt;&lt;P&gt;Row_Number() Over() as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I_PART_Hash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From(Select Distinct I_PART from PART_SUMMRY ) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventhough I used &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I_PART_Hash in Mixed case in SQL select&amp;nbsp; I have to refer to it as uppercase in the QLikview load following the SQL&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jan 2013 15:22:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-22T15:22:23Z</dc:date>
    <item>
      <title>Help with a LOAD followed by Oracle ODBC SQL SELECT</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224793#M77156</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'm having difficulty getting this to work.&lt;/P&gt;&lt;P&gt;It keeps coming up with a message like "field &amp;lt;portfolio&amp;gt; not found". If I move, say, the consumerid expression first, it says "field &amp;lt;consumerid&amp;gt; not found". Is there anything obvious I'm doing wrong here?&lt;/P&gt;&lt;P&gt;The SQL expression works just fine in Oracle, but for some reason QlikView doesn't like the combination of the LOAD and SQL SELECT&lt;/P&gt;&lt;P&gt;Help!&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;CM_Isolations:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;portfolio,&lt;BR /&gt;mpr1, lastbillrd1, lastbilldt1,&lt;BR /&gt;TEXT(consumerid) AS consumerid,&lt;BR /&gt;TEXT(meter_sn1) AS meter_sn1,&lt;BR /&gt;meter_location1, meter_size1,&lt;BR /&gt;site_address1,&lt;BR /&gt;site_address2,&lt;BR /&gt;site_address3,&lt;BR /&gt;site_address4,&lt;BR /&gt;site_postcode,&lt;BR /&gt;mpr2, lastbillrd2, lastbilldt2,&lt;BR /&gt;TEXT(meter_sn2) AS meter_sn2,&lt;BR /&gt;meter_location2, meter_size2,&lt;BR /&gt;mpr3, lastbillrd3, lastbilldt3,&lt;BR /&gt;TEXT(meter_sn3) AS meter_sn3,&lt;BR /&gt;meter_location3, meter_size3,&lt;BR /&gt;mpr4, lastbillrd4, lastbilldt4,&lt;BR /&gt;TEXT(meter_sn4) AS meter_sn4,&lt;BR /&gt;meter_location4, meter_size4,&lt;BR /&gt;mpr5, lastbillrd5, lastbilldt5,&lt;BR /&gt;TEXT(meter_sn5) AS meter_sn5,&lt;BR /&gt;meter_location5, meter_size5,&lt;BR /&gt;mpr6, lastbillrd6, lastbilldt6,&lt;BR /&gt;TEXT(meter_sn6) AS meter_sn6,&lt;BR /&gt;meter_location6, meter_size6;&lt;/P&gt;&lt;P&gt;// LOAD to ensure certain fields come out as string&lt;/P&gt;&lt;P&gt;SQL SELECT DISTINCT&lt;BR /&gt; consumer.portfolio AS portfolio,&lt;BR /&gt; ml_outer1.mp_refno AS mpr1, ml_outer1.lastbillrd AS lastbillrd1, ml_outer1.lastbilldt AS lastbilldt1,&lt;BR /&gt; consumer.consumerid AS consumerid,&lt;BR /&gt; ml_outer1.meter_sn AS meter_sn1,&lt;BR /&gt;mri1.m_loc_desc AS meter_location1, mri1.meter_model AS meter_size1,&lt;BR /&gt;TRIM(TRIM(mprdb1.sub_build) || ' ' || TRIM(mprdb1.build_name) || ' ' || TRIM(mprdb1.build_no) || ' ' || TRIM(mprdb1.princ_str))&lt;BR /&gt; AS site_address1,&lt;BR /&gt;TRIM(TRIM(mprdb1.dep_street) || ' ' || TRIM(mprdb1.dbl_dep_lc)) AS site_address2,&lt;BR /&gt;TRIM(mprdb1.dep_local) AS site_address3,&lt;BR /&gt;TRIM(mprdb1.post_town) AS site_address4,&lt;BR /&gt;TRIM(TRIM(mprdb1.out_code) || ' ' || TRIM(mprdb1.in_code)) AS site_postcode,&lt;BR /&gt; ml_outer2.mp_refno AS mpr2, ml_outer2.lastbillrd AS lastbillrd2, ml_outer2.lastbilldt AS lastbilldt2,&lt;BR /&gt; ml_outer2.meter_sn AS meter_sn2,&lt;BR /&gt;mri2.m_loc_desc AS meter_location2, mri2.meter_model AS meter_size2,&lt;BR /&gt; ml_outer3.mp_refno AS mpr3, ml_outer3.lastbillrd AS lastbillrd3, ml_outer3.lastbilldt AS lastbilldt3,&lt;BR /&gt; ml_outer3.meter_sn AS meter_sn3,&lt;BR /&gt;mri3.m_loc_desc AS meter_location3, mri3.meter_model AS meter_size3,&lt;BR /&gt; ml_outer4.mp_refno AS mpr4, ml_outer4.lastbillrd AS lastbillrd4, ml_outer4.lastbilldt AS lastbilldt4,&lt;BR /&gt; ml_outer4.meter_sn AS meter_sn4,&lt;BR /&gt;mri4.m_loc_desc AS meter_location4, mri4.meter_model AS meter_size4,&lt;BR /&gt; ml_outer5.mp_refno AS mpr5, ml_outer5.lastbillrd AS lastbillrd5, ml_outer5.lastbilldt AS lastbilldt5,&lt;BR /&gt;mri5.m_loc_desc AS meter_location5, mri5.meter_model AS meter_size5,&lt;BR /&gt; ml_outer5.meter_sn AS meter_sn5,&lt;BR /&gt; ml_outer6.mp_refno AS mpr6, ml_outer6.lastbillrd AS lastbillrd6, ml_outer6.lastbilldt AS lastbilldt6,&lt;BR /&gt; ml_outer6.meter_sn AS meter_sn6,&lt;BR /&gt;mri6.m_loc_desc AS meter_location6, mri6.meter_model AS meter_size6&lt;BR /&gt; FROM ESI_USER.consumer&lt;BR /&gt; LEFT JOIN (SELECT * FROM ESI_USER.v_meter_latest_ranked WHERE rnk = 1) ml_outer1&lt;BR /&gt; ON consumer.consumerid = ml_outer1.consumerid&lt;BR /&gt; LEFT JOIN ESI_USER.v_mridata_latestbympr mri1&lt;BR /&gt; ON ml_outer1.mp_refno = mri1.mpr&lt;BR /&gt;LEFT JOIN ESI_USER.mprdbase mprdb1&lt;BR /&gt; ON ml_outer1.mp_refno = TO_NUMBER(mprdb1.mpo_ref)&lt;BR /&gt; LEFT JOIN (SELECT * FROM ESI_USER.v_meter_latest_ranked WHERE rnk = 2) ml_outer2&lt;BR /&gt; ON consumer.consumerid = ml_outer2.consumerid&lt;BR /&gt; LEFT JOIN ESI_USER.v_mridata_latestbympr mri2&lt;BR /&gt; ON ml_outer2.mp_refno = mri2.mpr&lt;BR /&gt; LEFT JOIN (SELECT * FROM ESI_USER.v_meter_latest_ranked WHERE rnk = 3) ml_outer3&lt;BR /&gt; ON ml_outer1.consumerid = ml_outer3.consumerid&lt;BR /&gt; LEFT JOIN ESI_USER.v_mridata_latestbympr mri3&lt;BR /&gt; ON ml_outer3.mp_refno = mri3.mpr&lt;BR /&gt; LEFT JOIN (SELECT * FROM ESI_USER.v_meter_latest_ranked WHERE rnk = 4) ml_outer4&lt;BR /&gt; ON consumer.consumerid = ml_outer4.consumerid&lt;BR /&gt; LEFT JOIN ESI_USER.v_mridata_latestbympr mri4&lt;BR /&gt; ON ml_outer4.mp_refno = mri4.mpr&lt;BR /&gt;LEFT JOIN (SELECT * FROM ESI_USER.v_meter_latest_ranked WHERE rnk = 5) ml_outer5&lt;BR /&gt; ON consumer.consumerid = ml_outer5.consumerid&lt;BR /&gt;LEFT JOIN ESI_USER.v_mridata_latestbympr mri5&lt;BR /&gt; ON ml_outer5.mp_refno = mri5.mpr&lt;BR /&gt;LEFT JOIN (SELECT * FROM ESI_USER.v_meter_latest_ranked WHERE rnk = 6) ml_outer6&lt;BR /&gt; ON consumer.consumerid = ml_outer6.consumerid&lt;BR /&gt;LEFT JOIN ESI_USER.v_mridata_latestbympr mri6&lt;BR /&gt; ON ml_outer6.mp_refno = mri6.mpr&lt;BR /&gt; ORDER BY consumer.consumerid;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 18:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224793#M77156</guid>
      <dc:creator />
      <dc:date>2010-01-27T18:31:20Z</dc:date>
    </item>
    <item>
      <title>Help with a LOAD followed by Oracle ODBC SQL SELECT</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224794#M77157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've found that when using Oracle, it returns all field names in uppercase regardless of the case used in the select statement. So I have made it a policy to always write my Oracle select statements in uppercase.&lt;/P&gt;&lt;P&gt;In your example if you just change your load statement reference to the field names in your select statement to upper case it should work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 18:42:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224794#M77157</guid>
      <dc:creator>markmccoid</dc:creator>
      <dc:date>2010-01-27T18:42:28Z</dc:date>
    </item>
    <item>
      <title>Help with a LOAD followed by Oracle ODBC SQL SELECT</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224795#M77158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that's exactly the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224795#M77158</guid>
      <dc:creator />
      <dc:date>2010-01-28T10:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a LOAD followed by Oracle ODBC SQL SELECT</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224796#M77159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is true&lt;/P&gt;&lt;P&gt;For any reason if someone need to to change the case of field names do it in QLikview load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[ItemList]:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;I_PART,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I_PART_HASH as I_PART_Hash;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL Select&lt;/P&gt;&lt;P&gt;I_PART,&lt;/P&gt;&lt;P&gt;Row_Number() Over() as &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I_PART_Hash&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;From(Select Distinct I_PART from PART_SUMMRY ) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventhough I used &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;I_PART_Hash in Mixed case in SQL select&amp;nbsp; I have to refer to it as uppercase in the QLikview load following the SQL&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jan 2013 15:22:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-a-LOAD-followed-by-Oracle-ODBC-SQL-SELECT/m-p/224796#M77159</guid>
      <dc:creator />
      <dc:date>2013-01-22T15:22:23Z</dc:date>
    </item>
  </channel>
</rss>

