Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 1 to 3 of 3 total |
INTERVAL again... |
Wed, Dec 15 2021 5:18 PM | Permanent Link |
Ian Branch | Hi Team,
I have the following.. {sql} (e.datetime - c.datetime) > interval '30' minute {sql} as part of where clause. both datetimes are full datetimes.. I am after where e.datetime is more than 30 minutes after c.datetime. In edbmgr I get the error.. "ElevateDB Error #700 An error was found in the statement at line 2 and column 88 (Expected Interval Day To MSecond expression but instead found INTERVAL '30' MINUTE)" Ummmm. Why?? Regards & TIA, Ian |
Thu, Dec 16 2021 1:59 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Ian
Alter your SQL to (e.datetime - c.datetime) minute > interval '30' minute Why? - My view the weirdness of the SQL standard settings mob. Others would say that you were trying to compare to different qualities ie TIMESTAMP and MINUTE. Pick which ever answer you like! Roy Lambert |
Thu, Dec 16 2021 4:55 AM | Permanent Link |
Ian Branch | Or both.
Thanks Roy. |
This web page was last updated on Friday, April 19, 2024 at 07:09 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |