<?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 select for each day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567266#M683217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;stai confrontando la start_date che sul db oracle è una date con la variabile qlikview che contiene un numero, da cui l'errore oracle, cioè stai eseguendo qualcosa di simile a&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SELECT * from employee_uo where start_date = 40000;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 10:32:37 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2014-02-26T10:32:37Z</dc:date>
    <item>
      <title>sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567247#M683195</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 have a select like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql select table.name, table.surname, table.age&lt;/P&gt;&lt;P&gt;from table&lt;/P&gt;&lt;P&gt;where table.borndate = vDday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need vDay loops between 2 values(i.e. 20120101 and sysdate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result set will be a list of record for each day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tyvm &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567247#M683195</guid>
      <dc:creator />
      <dc:date>2014-02-25T13:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567248#M683196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Simone&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may be mis-understanding, but how about you extract all your data into QlikView, with say :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;Data :&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;sql select &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 60px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;table.name, &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 60px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;table.surname, &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 60px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;table.age , &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 60px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;table.borndate&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;from table&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From that you may well be able to create a dashboard objects as per your needs.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am unclear as what end result you are hoping to achieve though.&amp;nbsp; Could you clarify ?&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567248#M683196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-25T13:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567249#M683197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET myDateIni = num(Date#('01/02/2013','DD/MM/YYYY'));&lt;/P&gt;&lt;P&gt;LET myDateFin = Num(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = num(Date#('01/02/2014','DD/MM/YYYY')) to Num(Today())&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT * from myTable where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;borndate &lt;/SPAN&gt;= $(i);&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Devi fare attenzione al formato data del camoi borndate visto che la variabile $(i) è settata in italiano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:17:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567249#M683197</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-25T13:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567250#M683198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think query should be like below,include Greater than sign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql select table.name, table.surname, table.age&lt;/P&gt;&lt;P&gt;from table&lt;/P&gt;&lt;P&gt;where table.borndate &amp;gt;= vDday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:18:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567250#M683198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-25T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567251#M683199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlikview Variable cannot be used directly into the SQL query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can either load the whole data and restrict data at UI level, by creating calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;where borndate = vDay;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL select table.name, table.surname, table.age&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from table;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Something like above.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Angad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567251#M683199</guid>
      <dc:creator />
      <dc:date>2014-02-25T13:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567252#M683200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Angad, we can pass variable values into SQL statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:34:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567252#M683200</guid>
      <dc:creator />
      <dc:date>2014-02-25T13:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567253#M683201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my bad.....Yes we can pass the variable to SQL. Thanks for pointing this out. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567253#M683201</guid>
      <dc:creator />
      <dc:date>2014-02-25T13:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567254#M683202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Grazie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;la funzione Date mi restituisce un dual, nella tabella ho un campo data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:44:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567254#M683202</guid>
      <dc:creator />
      <dc:date>2014-02-25T13:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567255#M683206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567255#M683206</guid>
      <dc:creator />
      <dc:date>2014-02-25T13:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567256#M683207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Simone&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;pass the variable to SQL&lt;/SPAN&gt; you need to use &lt;EM&gt;dollar expansion&lt;/EM&gt;, as in :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt; $(vYourVariable)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This evaluates what is inside the brackets and substitutes this as text.&amp;nbsp; In this case with just a variable inside, it is simply substituted with the text value of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567256#M683207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-25T13:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567257#M683208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Si ma il formato è DD/MM/YYYY? se è così allora dovrebbe già fiunzionare, altrimenti prova&lt;/P&gt;&lt;P&gt;a girare le date&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;num(Date#('01/02/2014','DD/MM/YYYY')) in ..... YYYY/MM/DD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Num(Date#(Today(),&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;'DD/MM/YYYY'&lt;/SPAN&gt;) in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;YYYY/MM/DD&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 12px; background-color: #f6f6f6; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Dovrebbe andare, fammi sapere&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567257#M683208</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-25T13:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567258#M683209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where borndate = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&amp;nbsp; '&lt;/SPAN&gt;&lt;EM style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;$(vYourVariable)&lt;/EM&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 13:53:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567258#M683209</guid>
      <dc:creator />
      <dc:date>2014-02-25T13:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567259#M683210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Il formato su db è dd/mm/yyyy&lt;/P&gt;&lt;P&gt;l'errore restituito quando lancio lo script è&lt;/P&gt;&lt;P&gt;ORA-00932: tipi di dati incoerenti: previsto DATE, ottenuto NUMBER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET myDateIni = Num(Date#('01/02/2013','DD/MM/YYYY'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET myDateFin = Num(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = num(Date#('01/02/2013','DD/MM/YYYY')) to Num(Date#(Today(),'DD/MM/YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT * from employee_uo where start_date = $(i);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 14:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567259#M683210</guid>
      <dc:creator />
      <dc:date>2014-02-25T14:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567260#M683211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Simone,&lt;/P&gt;&lt;P&gt;La mia query gira in MSSQL, la tua in oracle, quando ci sono problemi di formato dovuti al DB, fai lavorare qlik, prova a spostare la logica nel load in questa maniera e fammi sapere&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FOR i = num(Date#('01/02/2014','DD/MM/YYYY')) to Num(Date#(Today()&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'DD/MM/YYYY&lt;/SPAN&gt;))&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD * where Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: inherit; font-weight: inherit;"&gt;borndate) &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;= $(i);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT * from myTable;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 14:09:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567260#M683211</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-02-25T14:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567261#M683212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;continua a darmi errore, con l'ultima soluzione non trova il campo borndate.&lt;/P&gt;&lt;P&gt;sto impazzendo per un cosa che in teoria dovrebbe essere semplice&lt;/P&gt;&lt;P&gt;Grazie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 17:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567261#M683212</guid>
      <dc:creator />
      <dc:date>2014-02-25T17:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567262#M683213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Bill&lt;/P&gt;&lt;P&gt;i tried this way :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = Date#('01/12/2012','DD/MM/YYYY') to Date#('31/12/2012','DD/MM/YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT cod_uo, employee_id&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM employee_uo&lt;/P&gt;&lt;P&gt;WHERE $(i) &amp;gt;= start_date AND $(i) &amp;lt;= expiry_date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-size: 8pt;"&gt;Lookup Error ORA-00932: inconsistent datatypes: expected DATE got NUMBER&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;SELECT cod_uo, employee_id&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp; FROM employee_uo&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-size: 8pt;"&gt; WHERE 41244 &amp;gt;= start_date AND 41244 &amp;lt;= expiry_date&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any solution?&lt;/P&gt;&lt;P&gt;tyvm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 09:36:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567262#M683213</guid>
      <dc:creator />
      <dc:date>2014-02-26T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567263#M683214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this works on an oracle dbms&lt;/P&gt;&lt;P&gt;hiredate is a date data type in my table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=xxxx;Data Source=xxxxx;Extended Properties=""] (XPassword is xxxxxxxxxxxxx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET myDateIni = Num(Date#('01/01/2014','DD/MM/YYYY'));&lt;/P&gt;&lt;P&gt;LET myDateFin = Num(Today());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i = myDateIni to myDateFin&lt;/P&gt;&lt;P&gt;&amp;nbsp; TRACE $(i);&lt;/P&gt;&lt;P&gt;&amp;nbsp; LET d=date($(i), 'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;&amp;nbsp; trace $(d);&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD *;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT * FROM "TEST"."EMP" where hiredate &amp;gt;= to_date('$(d)', 'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 09:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567263#M683214</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-26T09:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567264#M683215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let vint=interval(Date1-Date2,'D')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i =0 to vint&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let Vdate=dayname('Date1',$(i))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT cod_uo, employee_id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM employee_uo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE vdate &amp;gt;= start_date AND vdate &amp;lt;= expiry_date;&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;&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567264#M683215</guid>
      <dc:creator />
      <dc:date>2014-02-26T10:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567265#M683216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try below...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sql select table.name, table.surname, table.age&lt;/P&gt;&lt;P&gt;from table&lt;/P&gt;&lt;P&gt;where table.borndate &amp;gt;='$(vDday)' and table.borndate &amp;lt;=Today()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567265#M683216</guid>
      <dc:creator />
      <dc:date>2014-02-26T10:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: sql select for each day</title>
      <link>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567266#M683217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;stai confrontando la start_date che sul db oracle è una date con la variabile qlikview che contiene un numero, da cui l'errore oracle, cioè stai eseguendo qualcosa di simile a&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SELECT * from employee_uo where start_date = 40000;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 10:32:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sql-select-for-each-day/m-p/567266#M683217</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-26T10:32:37Z</dc:date>
    </item>
  </channel>
</rss>

