<?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 Unable to reload QV when writing SQL case statement. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unable-to-reload-QV-when-writing-SQL-case-statement/m-p/327173#M1186797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am Unable to reload QV when writing SQL case statement, where as if I load without that case statement, it runs successfully. But if we put that case statement and load it says connection OLE DB error and there after that case. I am sure I have connected thru the correct data source but unable to run. Need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp; OU_TourCode, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case when charindex('D',substring(OU_TourCode,1,4)) &amp;gt; 0 then '' else OU_TourCode end as [OU_TourCode],&lt;/P&gt;&lt;P&gt;case when charindex('8',substring(OU_TourCode,5,8)) &amp;gt; 0 then '' else OU_TourCode end as [OU_TourCode],&lt;/P&gt;&lt;P&gt;case when charindex('8',substring(OU_TourCode,5,len(OU_TourCode))) &amp;gt; 0 then '' else OU_TourCode end as [OU_TourCode]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.*********_history with (nolock) &lt;/P&gt;&lt;P&gt;where&amp;nbsp; 1=1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condition......*******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;/P&gt;&lt;P&gt;Shubham Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 12:06:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-10-11T12:06:54Z</dc:date>
    <item>
      <title>Unable to reload QV when writing SQL case statement.</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-reload-QV-when-writing-SQL-case-statement/m-p/327173#M1186797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am Unable to reload QV when writing SQL case statement, where as if I load without that case statement, it runs successfully. But if we put that case statement and load it says connection OLE DB error and there after that case. I am sure I have connected thru the correct data source but unable to run. Need help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp; OU_TourCode, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case when charindex('D',substring(OU_TourCode,1,4)) &amp;gt; 0 then '' else OU_TourCode end as [OU_TourCode],&lt;/P&gt;&lt;P&gt;case when charindex('8',substring(OU_TourCode,5,8)) &amp;gt; 0 then '' else OU_TourCode end as [OU_TourCode],&lt;/P&gt;&lt;P&gt;case when charindex('8',substring(OU_TourCode,5,len(OU_TourCode))) &amp;gt; 0 then '' else OU_TourCode end as [OU_TourCode]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbo.*********_history with (nolock) &lt;/P&gt;&lt;P&gt;where&amp;nbsp; 1=1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condition......*******&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindest Regards&lt;/P&gt;&lt;P&gt;Shubham Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 12:06:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-reload-QV-when-writing-SQL-case-statement/m-p/327173#M1186797</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-11T12:06:54Z</dc:date>
    </item>
    <item>
      <title>Unable to reload QV when writing SQL case statement.</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-reload-QV-when-writing-SQL-case-statement/m-p/327174#M1186798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Shubham &lt;/P&gt;&lt;P&gt; Your query returns the fields with the same name (OU_TourCode) a few times.&lt;/P&gt;&lt;P&gt;This is fine on SQL, but QV will not accept it, because the field name is very important to the associative logic. &lt;/P&gt;&lt;P&gt;If you need the query like this, you need to at least rename the fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 13:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-reload-QV-when-writing-SQL-case-statement/m-p/327174#M1186798</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-10-11T13:55:27Z</dc:date>
    </item>
    <item>
      <title>Unable to reload QV when writing SQL case statement.</title>
      <link>https://community.qlik.com/t5/QlikView/Unable-to-reload-QV-when-writing-SQL-case-statement/m-p/327175#M1186799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you Shiino,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution provided by you have worked &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Shubham Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 04:31:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unable-to-reload-QV-when-writing-SQL-case-statement/m-p/327175#M1186799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-12T04:31:00Z</dc:date>
    </item>
  </channel>
</rss>

