<?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 Importing for a db2 database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Importing-for-a-db2-database/m-p/666560#M674916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm trying to import from a database into qlikview. I am getting an error that OLTV cannot be found, but I have declared it in the SQL script (in red) and then I try to rename it (also in red).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to solve this problem? As to why I cannot declare something in the SQL script &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;/P&gt;&lt;P&gt;//ML&lt;/P&gt;&lt;P&gt;//LTV&lt;/P&gt;&lt;P&gt;LTV:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ACCT_NBR as acct_nbr;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;OLTV as oltv;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sql select &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;(CASE WHEN DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT&amp;gt;0 AND DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT &amp;lt;DW.V_MORT_LOAN_ACCT.APPR_AMT THEN DW.V_MORT_LOAN_ACCT.ORIG_AMT&amp;nbsp; / DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT&amp;nbsp; * 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #575757;"&gt;WHEN DW.V_MORT_LOAN_ACCT.APPR_AMT &amp;gt;0 THEN DW.V_MORT_LOAN_ACCT.ORIG_AMT&amp;nbsp;&amp;nbsp; / DW.V_MORT_LOAN_ACCT.APPR_AMT&amp;nbsp;&amp;nbsp; * 100&amp;nbsp; ELSE 0 END&amp;nbsp;&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;s&lt;/SPAN&gt; OTLV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;, DW.V_MORT_LOAN_ACCT.ACCT_NBR &lt;/P&gt;&lt;P&gt;from DW.V_MORT_LOAN_ACCT&lt;/P&gt;&lt;P&gt; where (DW.V_MORT_LOAN_ACCT.ACCT_STAT_CD = '1') and (DW.V_MORT_LOAN_ACCT.PROD_DT = (select MAX (DW.V_MORT_LOAN_ACCT.PROD_DT) from DW.V_MORT_LOAN_ACCT));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 14:56:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-28T14:56:46Z</dc:date>
    <item>
      <title>Importing for a db2 database</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-for-a-db2-database/m-p/666560#M674916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I'm trying to import from a database into qlikview. I am getting an error that OLTV cannot be found, but I have declared it in the SQL script (in red) and then I try to rename it (also in red).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to solve this problem? As to why I cannot declare something in the SQL script &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;/P&gt;&lt;P&gt;//ML&lt;/P&gt;&lt;P&gt;//LTV&lt;/P&gt;&lt;P&gt;LTV:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;ACCT_NBR as acct_nbr;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #ff0000; font-size: 10pt;"&gt;OLTV as oltv;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sql select &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;(CASE WHEN DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT&amp;gt;0 AND DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT &amp;lt;DW.V_MORT_LOAN_ACCT.APPR_AMT THEN DW.V_MORT_LOAN_ACCT.ORIG_AMT&amp;nbsp; / DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT&amp;nbsp; * 100 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;SPAN style="color: #575757;"&gt;WHEN DW.V_MORT_LOAN_ACCT.APPR_AMT &amp;gt;0 THEN DW.V_MORT_LOAN_ACCT.ORIG_AMT&amp;nbsp;&amp;nbsp; / DW.V_MORT_LOAN_ACCT.APPR_AMT&amp;nbsp;&amp;nbsp; * 100&amp;nbsp; ELSE 0 END&amp;nbsp;&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;s&lt;/SPAN&gt; OTLV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;, DW.V_MORT_LOAN_ACCT.ACCT_NBR &lt;/P&gt;&lt;P&gt;from DW.V_MORT_LOAN_ACCT&lt;/P&gt;&lt;P&gt; where (DW.V_MORT_LOAN_ACCT.ACCT_STAT_CD = '1') and (DW.V_MORT_LOAN_ACCT.PROD_DT = (select MAX (DW.V_MORT_LOAN_ACCT.PROD_DT) from DW.V_MORT_LOAN_ACCT));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 14:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-for-a-db2-database/m-p/666560#M674916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T14:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Importing for a db2 database</title>
      <link>https://community.qlik.com/t5/QlikView/Importing-for-a-db2-database/m-p/666561#M674917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You SQL statement field name (OTLV) is different from LOAD statement Field Name (OLTV).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like below:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LTV:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ACCT_NBR as acct_nbr;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit; color: #ff0000;"&gt;OLTV as oltv;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sql select&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;(CASE WHEN DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT&amp;gt;0 AND DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT &amp;lt;DW.V_MORT_LOAN_ACCT.APPR_AMT THEN DW.V_MORT_LOAN_ACCT.ORIG_AMT&amp;nbsp; / DW.V_MORT_LOAN_ACCT.SALES_PRICE_AMT&amp;nbsp; * 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #575757;"&gt;WHEN DW.V_MORT_LOAN_ACCT.APPR_AMT &amp;gt;0 THEN DW.V_MORT_LOAN_ACCT.ORIG_AMT&amp;nbsp;&amp;nbsp; / DW.V_MORT_LOAN_ACCT.APPR_AMT&amp;nbsp;&amp;nbsp; * 100&amp;nbsp; ELSE 0 END&amp;nbsp;&amp;nbsp; )&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;a&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;s&lt;/SPAN&gt; OLTV&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;, DW.V_MORT_LOAN_ACCT.ACCT_NBR&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from DW.V_MORT_LOAN_ACCT&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where (DW.V_MORT_LOAN_ACCT.ACCT_STAT_CD = '1') and (DW.V_MORT_LOAN_ACCT.PROD_DT = (select MAX (DW.V_MORT_LOAN_ACCT.PROD_DT) from DW.V_MORT_LOAN_ACCT));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 15:21:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Importing-for-a-db2-database/m-p/666561#M674917</guid>
      <dc:creator />
      <dc:date>2014-07-28T15:21:49Z</dc:date>
    </item>
  </channel>
</rss>

