<?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 Making this SQL code Compatible with QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232256#M859905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I make this compatible with QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE MPL&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT ITMSNumber,Date_Chg,DATEDIFF(dd,Date_Chg,GETDATE()) AS tDays&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM tblSTRATEGY Strgy&lt;/P&gt;&lt;P&gt;&amp;nbsp; inner join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ( SELECT ChangeKeyValue AS ITMS_Chg,MAX(ChangeDate) AS Date_Chg&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM tblCHANGE Chg&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE ChangeFieldName='DATALOADSTATUSID'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND ChangeNewValue='Quarantined - DSC'&lt;/P&gt;&lt;P&gt;&amp;nbsp; GROUP BY ChangeKeyValue&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) Chg1 ON Chg1.ITMS_Chg=Strgy.ITMSNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE Strgy.DATALOADSTATUSID=30&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER BY TDAYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to load ITMSNumber and tDays to make this work right-&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="150820" alt="quarantined days.PNG" class="jive-image image-1" src="/legacyfs/online/150820_quarantined days.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now these numbers above should add up to 41.&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>Making this SQL code Compatible with QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232256#M859905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I make this compatible with QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE MPL&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT ITMSNumber,Date_Chg,DATEDIFF(dd,Date_Chg,GETDATE()) AS tDays&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM tblSTRATEGY Strgy&lt;/P&gt;&lt;P&gt;&amp;nbsp; inner join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ( SELECT ChangeKeyValue AS ITMS_Chg,MAX(ChangeDate) AS Date_Chg&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM tblCHANGE Chg&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE ChangeFieldName='DATALOADSTATUSID'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND ChangeNewValue='Quarantined - DSC'&lt;/P&gt;&lt;P&gt;&amp;nbsp; GROUP BY ChangeKeyValue&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) Chg1 ON Chg1.ITMS_Chg=Strgy.ITMSNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE Strgy.DATALOADSTATUSID=30&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER BY TDAYS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to be able to load ITMSNumber and tDays to make this work right-&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="150820" alt="quarantined days.PNG" class="jive-image image-1" src="/legacyfs/online/150820_quarantined days.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now these numbers above should add up to 41.&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/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232256#M859905</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Making this SQL code Compatible with QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232257#M859906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is that code incompatible? Drop the USE statement and append SQL in front. The statement is passed to the SQL server and executed by that server, not by QV. QV can then consume the&amp;nbsp; data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your OLEDB or ODBC connection will point you to the MPL database/catalog, that's why would not normally need the USE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONNECT .....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[Data]:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SQL &lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;SELECT ITMSNumber,Date_Chg,DATEDIFF(dd,Date_Chg,GETDATE()) AS tDays&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; FROM tblSTRATEGY Strgy&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; inner join&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; ( SELECT ChangeKeyValue AS ITMS_Chg,MAX(ChangeDate) AS Date_Chg&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; FROM tblCHANGE Chg&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; WHERE ChangeFieldName='DATALOADSTATUSID'&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; AND ChangeNewValue='Quarantined - DSC'&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; GROUP BY ChangeKeyValue&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; ) Chg1 ON Chg1.ITMS_Chg=Strgy.ITMSNumber&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; WHERE Strgy.DATALOADSTATUSID=30&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;&amp;nbsp; ORDER BY TDAYS;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232257#M859906</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-01-25T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Making this SQL code Compatible with QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232258#M859907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232258#M859907</guid>
      <dc:creator />
      <dc:date>2017-01-25T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Making this SQL code Compatible with QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232259#M859908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still doesn't add up to 41 though. With this code it only adds up to 38...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 12:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232259#M859908</guid>
      <dc:creator />
      <dc:date>2017-01-25T12:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Making this SQL code Compatible with QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232260#M859909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Data]:&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT ITMSNumber,Date_Chg,DATEDIFF(dd,Date_Chg,GETDATE()) AS tDays&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM tblSTRATEGY Strgy&lt;/P&gt;&lt;P&gt;&amp;nbsp; inner join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ( SELECT ChangeKeyValue AS ITMS_Chg,MAX(ChangeDate) AS Date_Chg&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM tblCHANGE Chg&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE ChangeFieldName='DATALOADSTATUSID'&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND ChangeNewValue='Quarantined - DSC'&lt;/P&gt;&lt;P&gt;&amp;nbsp; GROUP BY ChangeKeyValue&lt;/P&gt;&lt;P&gt;&amp;nbsp; ) Chg1 ON Chg1.ITMS_Chg=Strgy.ITMSNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE Strgy.DATALOADSTATUSID=30&lt;/P&gt;&lt;P&gt;&amp;nbsp; ORDER BY TDAYS;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:08:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-this-SQL-code-Compatible-with-QlikView/m-p/1232260#M859909</guid>
      <dc:creator />
      <dc:date>2017-01-25T13:08:25Z</dc:date>
    </item>
  </channel>
</rss>

