<?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: Hello, Please anyone help me how to write below SQL query in Qlikview. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402065#M149613</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;This code is running;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;potentialid,snapshotdate,closingdate,amount,sales_stage&lt;/P&gt;&lt;P&gt;1,2/4/2012, 2/3/2012,12,1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//FROM dbo.snapshot_feb28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * INLINE [&lt;/P&gt;&lt;P&gt;potentialid,closingdate,amount,sales_stage&lt;/P&gt;&lt;P&gt;2,2/3/2012,12,1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;TEMP1:&lt;/P&gt;&lt;P&gt;LOAD *, Interval ( Date(snapshotdate) - closingdate, 'D' ) &amp;lt;=90 as DInterval1&lt;/P&gt;&lt;P&gt;RESIDENT Table1;&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;NOCONCATENATE&lt;/P&gt;&lt;P&gt;TEMP2:&lt;/P&gt;&lt;P&gt;LOAD *, Date (TODAY()) as todaysdate , Interval( Date(closingdate) - Date (Today()) ,'D' ) as DInterval2&lt;/P&gt;&lt;P&gt;RESIDENT Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;Drop table Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT TEMP2&lt;/P&gt;&lt;P&gt;WHERE DInterval2 &amp;lt;=90 and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not Wildmatch('sales_stage','Closed Won','Closed Lost','Lead Dead')&lt;/P&gt;&lt;P&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT TEMP1&lt;/P&gt;&lt;P&gt;WHERE DInterval1&amp;nbsp; &amp;lt;=90&lt;/P&gt;&lt;P&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP2;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Mar 2013 07:09:53 GMT</pubDate>
    <dc:creator>nirav_bhimani</dc:creator>
    <dc:date>2013-03-28T07:09:53Z</dc:date>
    <item>
      <title>Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402057#M149605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select potentialid,snapshotdate,closingdate,amount,sales_stage FROM dbo.snapshot_feb28&lt;/P&gt;&lt;P&gt;WHERE DATEDIFF(dd,snapshotdate,closingdate) &amp;lt;=90 order by closingdate&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select potentialid,cast(GETDATE() as DATE) as todaysdate,closingdate,amount,sales_stage from potential&lt;/P&gt;&lt;P&gt;WHERE DATEDIFF(dd,closingdate,GETDATE()) &amp;lt;= 90&lt;/P&gt;&lt;P&gt;and sales_stage not in ('Closed Won','Closed Lost','Lead Dead')&lt;/P&gt;&lt;P&gt;order by closingdate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 04:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402057#M149605</guid>
      <dc:creator />
      <dc:date>2013-03-28T04:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402058#M149606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Table1:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;select potentialid,snapshotdate,closingdate,amount,sales_stage &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FROM dbo.snapshot_feb28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;select potentialid,closingdate,amount,sales_stage&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;from potential&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FINAL:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD *, Date(TODAY()) as &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;todaysdate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;RESIDENT TABLE2&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;WHERE Interval( Date(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;closingdate) &lt;/SPAN&gt;- Date (Today()) ,'D' ) &amp;lt;=90 and &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not Wildmatch('&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;sales_stage&lt;/SPAN&gt;',&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;'Closed Won','Closed Lost','Lead Dead'&lt;/SPAN&gt;)&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;order by closingdate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #333333; font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD * RESIDENT TABLE1&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;WHERE Interval ( Date(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;snapshotdate&lt;/SPAN&gt;) &lt;/SPAN&gt;- &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;closingdate&lt;/SPAN&gt;, 'D' ) &amp;lt;=90 &lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;order by closingdate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table1&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;Drop table &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Table2&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Interval function doesnot work then make that condition as a fileld and then use same field in resident in where clause.Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagdrs,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 05:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402058#M149606</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-28T05:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402059#M149607</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;&lt;SPAN style="font-size: 10pt;"&gt;If above code is not working properly then try this script, In this date diff. is calculated as a field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Table1:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;select potentialid,snapshotdate,closingdate,amount,sales_stage&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FROM dbo.snapshot_feb28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Table2:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;select potentialid,closingdate,amount,sales_stage&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;from potential&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;TEMP2:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD *, Date (TODAY()) as todaysdate ,&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; Interval( Date(closingdate) - Date (Today()) ,'D' )&lt;/SPAN&gt; as DInterval2&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;RESIDENT TABLE2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;NOCONCATENATE&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: arial, helvetica, sans-serif;"&gt;TEMP1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD *, &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; Interval ( Date(snapshotdate) - closingdate, 'D' ) &amp;lt;=90 as &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;DInterval1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;RESIDENT TABLE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Drop table Table1;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Drop table Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;NOCONCATENATE&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FINAL:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD * RESIDENT &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TEMP2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;WHERE &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;DInterval2&lt;/SPAN&gt; &amp;lt;=90 and&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not Wildmatch('sales_stage','Closed Won','Closed Lost','Lead Dead')&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;CONCATENATE&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD * RESIDENT &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TEMP1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;WHERE &lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;DInterval1&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;=90&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;DROP TABLE &lt;SPAN style="background-color: #ffffff;"&gt;TEMP2&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;DROP TABLE&lt;/SPAN&gt; TEMP1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 05:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402059#M149607</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-28T05:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402060#M149608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you think that the customized query as mention by you in the above blog will work in Desktop(Personal Edition)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 05:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402060#M149608</guid>
      <dc:creator />
      <dc:date>2013-03-28T05:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402061#M149609</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;If those table are already present in the database then first pull the field which you wanted then perform the operation on resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 06:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402061#M149609</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-28T06:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402062#M149610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting following error......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, Date (TODAY()) as todaysdate , Interval( Date(closingdate) - Date (Today()) ,'D' ) as DInterval2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT TABLE2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 06:26:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402062#M149610</guid>
      <dc:creator />
      <dc:date>2013-03-28T06:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402063#M149611</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;See the attachment its working now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 06:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402063#M149611</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-28T06:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402064#M149612</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;We are using personal edition hence cannot open any attachments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 07:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402064#M149612</guid>
      <dc:creator />
      <dc:date>2013-03-28T07:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402065#M149613</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;This code is running;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;potentialid,snapshotdate,closingdate,amount,sales_stage&lt;/P&gt;&lt;P&gt;1,2/4/2012, 2/3/2012,12,1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//FROM dbo.snapshot_feb28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * INLINE [&lt;/P&gt;&lt;P&gt;potentialid,closingdate,amount,sales_stage&lt;/P&gt;&lt;P&gt;2,2/3/2012,12,1&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;TEMP1:&lt;/P&gt;&lt;P&gt;LOAD *, Interval ( Date(snapshotdate) - closingdate, 'D' ) &amp;lt;=90 as DInterval1&lt;/P&gt;&lt;P&gt;RESIDENT Table1;&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;NOCONCATENATE&lt;/P&gt;&lt;P&gt;TEMP2:&lt;/P&gt;&lt;P&gt;LOAD *, Date (TODAY()) as todaysdate , Interval( Date(closingdate) - Date (Today()) ,'D' ) as DInterval2&lt;/P&gt;&lt;P&gt;RESIDENT Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;Drop table Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT TEMP2&lt;/P&gt;&lt;P&gt;WHERE DInterval2 &amp;lt;=90 and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Not Wildmatch('sales_stage','Closed Won','Closed Lost','Lead Dead')&lt;/P&gt;&lt;P&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT TEMP1&lt;/P&gt;&lt;P&gt;WHERE DInterval1&amp;nbsp; &amp;lt;=90&lt;/P&gt;&lt;P&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP2;&lt;/P&gt;&lt;P&gt;DROP TABLE TEMP1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 07:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402065#M149613</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-28T07:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402066#M149614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nirav,&lt;BR /&gt;thanx your code worked but my output is coming wrong.&lt;BR /&gt;I have highlighted on x axis. How to remove those null values.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="35674" class="jive-image-thumbnail jive-image" onclick="" alt="qv.bmp" src="https://community.qlik.com/legacyfs/online/35674_qv.bmp" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 11:45:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402066#M149614</guid>
      <dc:creator />
      <dc:date>2013-03-28T11:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402067#M149615</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;To avoid null values from that column add the following script in the where clause, in that specify your column name which is showing null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;where &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;not WildMatch(ColName,' ') or len(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;ColName&lt;/SPAN&gt;) &amp;lt;&amp;gt; 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Hope this will resolved your problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Nirav Bhimani&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2013 12:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402067#M149615</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-28T12:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402068#M149616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nirav,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PFA as I cud not remove those null values.&lt;/P&gt;&lt;P&gt;and the code i am using is given below.&lt;/P&gt;&lt;P&gt;reply asap&lt;/P&gt;&lt;P&gt;Thanx,&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;ODBC CONNECT32 TO MSSQL (XUserId is CAfacZFMfA, XPassword is QdKEGYFMTbcAUYIGTRSB);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select potentialid ,snapshotdate ,closingdate ,amount ,sales_stage &lt;/P&gt;&lt;P&gt;FROM Qlikview.dbo.snapshot;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select potentialid,closingdate,amount,sales_stage&lt;/P&gt;&lt;P&gt;from Qlikview.dbo.potential;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FINAL:&lt;/P&gt;&lt;P&gt;LOAD *, Date(TODAY()) as todaysdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Table2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Interval( Date(closingdate) - Date (Today()) ,'D' ) &amp;lt;=90 and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not WildMatch(sales_stage,'Closed Won','Closed Lost','Lead Dead') and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not WildMatch(closingdate,'') &lt;/P&gt;&lt;P&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * RESIDENT Table1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE Interval ( Date(snapshotdate) - closingdate, 'D' ) &amp;lt;=90 and&lt;/P&gt;&lt;P&gt;not WildMatch(snapshotdate,'')&lt;/P&gt;&lt;P&gt;order by closingdate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Table1;&lt;/P&gt;&lt;P&gt;Drop table Table2; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Mar 2013 05:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402068#M149616</guid>
      <dc:creator />
      <dc:date>2013-03-29T05:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402069#M149617</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;Pelase see the attachment, In my case it doesnot show and null values in the date field of chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have use the condition like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP1:&lt;/P&gt;&lt;P&gt;LOAD *, Interval ( Date(snapshotdate) - closingdate, 'D' ) &amp;lt;=90 as DInterval1&lt;/P&gt;&lt;P&gt;RESIDENT Table1&lt;/P&gt;&lt;P&gt;where not WildMatch(snapshotdate,' ') and not WildMatch(closingdate,' ') or len(closingdate) &amp;lt;&amp;gt; 0; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOCONCATENATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEMP2:&lt;/P&gt;&lt;P&gt;LOAD *, Date (TODAY()) as todaysdate , Interval( Date(closingdate) - Date (Today()) ,'D' ) as DInterval2&lt;/P&gt;&lt;P&gt;RESIDENT Table2 &lt;/P&gt;&lt;P&gt;Where not WildMatch(closingdate,' ') or len(closingdate) &amp;lt;&amp;gt; 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds,&lt;/P&gt;&lt;P&gt;Nirav Bhimani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Mar 2013 09:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402069#M149617</guid>
      <dc:creator>nirav_bhimani</dc:creator>
      <dc:date>2013-03-30T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402070#M149618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;If i run this code i get two fields Dinterval1, Dinterval2...&lt;BR /&gt;but the amount field is showing primary key....were we cant use it in bar chart for expression on x-axis....&lt;BR /&gt;and even tell me which field i have to take in bar chart to get that result?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more thing ...I cannot open the .qvm docs wch you are attaching so if possible you can send it in other format like copying it in MS word or pdf...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Mar 2013 10:57:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402070#M149618</guid>
      <dc:creator />
      <dc:date>2013-03-30T10:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, Please anyone help me how to write below SQL query in Qlikview.</title>
      <link>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402071#M149619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I got the soln for primary key...&lt;BR /&gt;code is running but same problem of null values...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 05:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hello-Please-anyone-help-me-how-to-write-below-SQL-query-in/m-p/402071#M149619</guid>
      <dc:creator />
      <dc:date>2013-04-01T05:37:40Z</dc:date>
    </item>
  </channel>
</rss>

