<?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: Adding a Date to a SQL Select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500301#M692763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a preceding Load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Today() as LoadDate;&lt;/P&gt;&lt;P&gt;SQL SELECT ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Sep 2013 20:40:22 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-09T20:40:22Z</dc:date>
    <item>
      <title>Adding a Date to a SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500300#M692762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a SQL Select * from MyView into a resident table.&amp;nbsp; While doing the select, I would like to add a date column to the table (not supplied in the view) to indicate the load date of the record set.&amp;nbsp; This may sound simple, but I'm having trouble finding the right syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 20:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500300#M692762</guid>
      <dc:creator />
      <dc:date>2013-09-09T20:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Date to a SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500301#M692763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a preceding Load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Today() as LoadDate;&lt;/P&gt;&lt;P&gt;SQL SELECT ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 20:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500301#M692763</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-09T20:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Date to a SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500302#M692764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntax for which database..?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 20:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500302#M692764</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2013-09-09T20:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Date to a SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500303#M692765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; I tried your suggestion and the script threw an error.&amp;nbsp; Here is the statement.&amp;nbsp; The sql select statement by itself runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TestTable:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LoadDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; SELECT *&lt;BR /&gt;FROM myDB.DBO."MyViewName"; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 21:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500303#M692765</guid>
      <dc:creator />
      <dc:date>2013-09-09T21:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Date to a SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500304#M692766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the error message say?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your DB table does not also have a field named LoadDate, of course.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 21:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500304#M692766</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-09T21:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a Date to a SQL Select</title>
      <link>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500305#M692767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My mistake.&amp;nbsp; I had a bad line above this one (copy / paste error).&amp;nbsp; Everything is ok.&amp;nbsp; Thanks again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 12:36:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Adding-a-Date-to-a-SQL-Select/m-p/500305#M692767</guid>
      <dc:creator />
      <dc:date>2013-09-10T12:36:19Z</dc:date>
    </item>
  </channel>
</rss>

