<?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: Error when using WHERE condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518965#M1141160</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it's working. In the same table I have huge amount of records. So, it's taking too long to load into QVD. Could you please help me how to increase the performance in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Oct 2013 09:00:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-07T09:00:32Z</dc:date>
    <item>
      <title>Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518960#M1141153</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;I need to load data from SQL table. So, I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; company&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "XX".Dbo."Employee"&lt;/P&gt;&lt;P&gt;where&amp;nbsp; CreatedOn&amp;gt;'2005-12-30';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I am using WHERE condition I am getting following error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone help me how to solve this and how to get the values after 2005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518960#M1141153</guid>
      <dc:creator />
      <dc:date>2013-10-07T08:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518961#M1141155</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;It's clearly a question of date format. What DB are you extracting data from.&lt;/P&gt;&lt;P&gt;Use a cast(Date) in you DB to change that format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518961#M1141155</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2013-10-07T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518962#M1141157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. Could you please let me know how to change the data format in DB as I am using SQL Database. The datatype for CreatedOn is datetime. And also I don't have write permissions to change the format in SQL database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518962#M1141157</guid>
      <dc:creator />
      <dc:date>2013-10-07T08:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518963#M1141158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;where&amp;nbsp; CreatedOn&amp;gt;convert(datetime, '2005-12-30', 120)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:52:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518963#M1141158</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-10-07T08:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518964#M1141159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks and it's working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:59:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518964#M1141159</guid>
      <dc:creator />
      <dc:date>2013-10-07T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518965#M1141160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks it's working. In the same table I have huge amount of records. So, it's taking too long to load into QVD. Could you please help me how to increase the performance in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 09:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518965#M1141160</guid>
      <dc:creator />
      <dc:date>2013-10-07T09:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518966#M1141161</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;With SQL server, if the date is in a format that the DB recognises, you can use a quoted value like yours. The error is because SQL Server does not recognise that format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Convert(') to convert a specific format. From SQL Books Online&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax for &lt;SPAN&gt;CONVERT&lt;/SPAN&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CONVERT&lt;/SPAN&gt; &lt;STRONG&gt;( &lt;/STRONG&gt;&lt;EM&gt;data_type &lt;/EM&gt;[ &lt;STRONG&gt;( &lt;/STRONG&gt;&lt;EM&gt;length &lt;/EM&gt;&lt;STRONG&gt;) &lt;/STRONG&gt;] &lt;STRONG&gt;, &lt;/STRONG&gt;&lt;EM&gt;expression&lt;/EM&gt; [ &lt;STRONG&gt;, &lt;/STRONG&gt;&lt;EM&gt;style &lt;/EM&gt;] &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, data_type would be datetime. Expression is your quoted string. The style is the format of the expression. You can look up the styles in SQL Books Online. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 09:00:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518966#M1141161</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2013-10-07T09:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error when using WHERE condition</title>
      <link>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518967#M1141162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where num(date#(CreatedOn))&amp;gt;num(makedate(2005,12,30))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;try this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 12:58:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-when-using-WHERE-condition/m-p/518967#M1141162</guid>
      <dc:creator>preminqlik</dc:creator>
      <dc:date>2013-10-07T12:58:39Z</dc:date>
    </item>
  </channel>
</rss>

