<?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 SQL load query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-load-query/m-p/1138557#M891277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Please could someone help me amend this code?&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;So that it is &lt;STRONG&gt;NOT&lt;/STRONG&gt; restricted to Cell - &lt;EM&gt;i.e 1200 Relay&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;and &lt;STRONG&gt;NOT&lt;/STRONG&gt; restricted to &lt;EM&gt;'Broken damaged parts'&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;But &lt;STRONG&gt;KEEPS&lt;/STRONG&gt; the code that deals with the NULLs&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Apologies but new to qlikview and SQL.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thank you &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;SELECT * &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;FROM UPDC_MDIData &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;WHERE UPDC_MDIData.Cell = '1200 Relay'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;AND CHARINDEX('Broken/damaged part', ISNULL(UPDC_MDIData.TimeOverCode, '')) &amp;gt; 0 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;AND UPDC_MDIData.TaskEnded BETWEEN '2016-08-01' AND '2016-09-01'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>SQL load query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-load-query/m-p/1138557#M891277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Please could someone help me amend this code?&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;So that it is &lt;STRONG&gt;NOT&lt;/STRONG&gt; restricted to Cell - &lt;EM&gt;i.e 1200 Relay&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;and &lt;STRONG&gt;NOT&lt;/STRONG&gt; restricted to &lt;EM&gt;'Broken damaged parts'&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;But &lt;STRONG&gt;KEEPS&lt;/STRONG&gt; the code that deals with the NULLs&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Apologies but new to qlikview and SQL.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thank you &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;SELECT * &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;FROM UPDC_MDIData &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;WHERE UPDC_MDIData.Cell = '1200 Relay'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;AND CHARINDEX('Broken/damaged part', ISNULL(UPDC_MDIData.TimeOverCode, '')) &amp;gt; 0 &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;STRONG style="color: #3366ff;"&gt;AND UPDC_MDIData.TaskEnded BETWEEN '2016-08-01' AND '2016-09-01'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-load-query/m-p/1138557#M891277</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL load query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-load-query/m-p/1138558#M891278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This query give correct out put to you on the SQL did you check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;SELECT * &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;FROM UPDC_MDIData &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;WHERE UPDC_MDIData.Cell = '1200 Relay'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="color: #3366ff;"&gt;AND CHARINDEX('Broken/damaged part', ISNULL(UPDC_MDIData.TimeOverCode, '')) &lt;STRONG&gt; &amp;gt;= -1&lt;/STRONG&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;AND UPDC_MDIData.TaskEnded BETWEEN '2016-08-01' AND '2016-09-01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only change is in place of ( &amp;gt;0 ) you have to use ( &amp;gt;= -1 ) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 09:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-load-query/m-p/1138558#M891278</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2016-08-19T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL load query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-load-query/m-p/1138559#M891279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Emma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try to replace first condition in WHERE expression with following:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.8px; font-family: arial, sans-serif; color: #3366ff;"&gt;WHERE UPDC_MDIData.Cell like N'%1200 Relay%'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;second condition with&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12.8px; font-family: arial, sans-serif; color: #3366ff;"&gt;UPDC_MDIData.TimeOverCode like N&lt;SPAN style="color: #3366ff; font-family: arial, sans-serif; font-size: 12.8px;"&gt;'%Broken/damaged part%'&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and the last one with this(if &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt; UPDC_MDIData.TaskEnded&amp;nbsp; has type of Date&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt; UPDC_MDIData.TaskEnded &amp;gt; convert(date, &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;'2016-08-01' , 126&lt;/SPAN&gt;) and &lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;UPDC_MDIData.TaskEnded &amp;gt; convert(date, &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;'&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;2016-09-01&lt;/SPAN&gt;' , 126&lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Aug 2016 11:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-load-query/m-p/1138559#M891279</guid>
      <dc:creator>ikomlyakov1929</dc:creator>
      <dc:date>2016-08-19T11:11:35Z</dc:date>
    </item>
  </channel>
</rss>

