<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Date Compare in ESQL Query (Thread)</title><description> Im trying to do a date comparison in my custom query so that I can create a report that always reports on the last 30 days of test runs. Unfortunately it appears that every method suggested in the IBM documentation does not work in the custom query.  Ive tried:   Using DATEDIFF(date1, date2, days).  Simply doing an interval subtraction (CurrentDateTime() - TR.END_TIME) DAY  </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/reports/1829.aspx</link><item><guid isPermaLink="false">threadId=1829</guid><author>Tyler Nielsen (tnielsen@billtrust.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">customreports</category><category domain="http://www.inflectra.com/kronodesk/thread/tag">esql</category><title>Date Compare in ESQL Query</title><description> Im trying to do a date comparison in my custom query so that I can create a report that always reports on the last 30 days of test runs. Unfortunately it appears that every method suggested in the IBM documentation does not work in the custom query.  Ive tried:   Using DATEDIFF(date1, date2, days).  Simply doing an interval subtraction (CurrentDateTime() - TR.END_TIME) DAY  </description><pubDate>Mon, 09 Apr 2018 15:50:41 -0400</pubDate><a10:updated>2018-08-17T06:30:08-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1829.aspx</link></item><item><guid isPermaLink="false">messageId=3257</guid><author>Jim R (donotreply5@kronodesk.net)</author><title> Hi  There are two types of entity SQL, one by IBM which is not used by Spira, and the other which i</title><description> Hi  There are two types of entity SQL, one by IBM which is not used by Spira, and the other which is from Microsoft, which is the technology being used. So you need to refer to the Microsoft documentation instead:   https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/ef/language-reference/entity-sql-reference   Regards  Jim </description><pubDate>Mon, 09 Apr 2018 16:53:11 -0400</pubDate><a10:updated>2018-04-09T16:53:11-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1829.aspx#reply3257</link></item><item><guid isPermaLink="false">messageId=3258</guid><author>Tyler Nielsen (tnielsen@billtrust.com)</author><title> Well, that certainly helps to know : )     Ok, for any future readers, I was able to solve my issue</title><description> Well, that certainly helps to know : )     Ok, for any future readers, I was able to solve my issue with the expression:     WHERE DiffDays(TR.END_DATE, CurrentDateTime()) &lt; 30         Thanks!   </description><pubDate>Mon, 09 Apr 2018 17:23:08 -0400</pubDate><a10:updated>2018-04-09T17:23:08-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1829.aspx#reply3258</link></item><item><guid isPermaLink="false">messageId=3376</guid><author>Tung Nguyen (tran.nguyen@transport.nsw.gov.au)</author><title> Hi,  To extend this, Id like to report the list of test executed with the results, however only the</title><description> Hi,  To extend this, Id like to report the list of test executed with the results, however only the last result which that test case was tested multiple times.  How can we get that from Entity SQL?  many thanks </description><pubDate>Fri, 17 Aug 2018 06:30:08 -0400</pubDate><a10:updated>2018-08-17T06:30:08-04:00</a10:updated><link>/Support/Forum/spirateam/reports/1829.aspx#reply3376</link></item></channel></rss>