<?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: SQL query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200640#M880869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Most likely the format is different. Try using the to_date function to make them match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2016 07:35:04 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2016-10-11T07:35:04Z</dc:date>
    <item>
      <title>SQL query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200634#M880863</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;I want to extract data from SQL with max (YEAR) and max(month) at raw level extraction.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what shud be qyery for that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest&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-query/m-p/1200634#M880863</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200635#M880864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;select * from table&lt;/P&gt;&lt;P&gt;where year(date) = (select max(year) from table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or something similar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we need more details to answer that&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200635#M880864</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2016-10-04T13:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200636#M880865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A subquery like this is one way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT Year,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Month,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; ...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM dbo.Table1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WHERE Year = Select(Max(Year) FRO dbo.Table1)&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 13:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200636#M880865</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-10-04T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200637#M880866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ioannis,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;below suggested working fine&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;select * from table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;where year(date) = (select max(year) from table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but below desired query does not giving any output&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;select * from table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;where year(date) = (select max(year) from table) and month(date) = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;(select max(Period) from table);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;pls suggest..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 13:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200637#M880866</guid>
      <dc:creator>abhaysingh</dc:creator>
      <dc:date>2016-10-06T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200638#M880867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not you try for incremental load logic for this.&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>Thu, 06 Oct 2016 14:12:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200638#M880867</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2016-10-06T14:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200639#M880868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;abhay singh wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;but below desired query does not giving any output&lt;/P&gt;
&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;select * from table&lt;/P&gt;
&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;where year(date) = (select max(year) from table) and month(date) = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;(select max(Period) from table);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;pls suggest..&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;From This, Might you require this&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * From Table &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where Year = Max(Year) and Month = Max(Month);&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 14:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200639#M880868</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-06T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200640#M880869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Most likely the format is different. Try using the to_date function to make them match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 07:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-query/m-p/1200640#M880869</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2016-10-11T07:35:04Z</dc:date>
    </item>
  </channel>
</rss>

