×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
For duration calculations, the syntax uses the terms days, months, years, hours, minutes, seconds to specify the duration units to apply to the date/time/timestamp value.
hth,
Eric
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of Michael Ryan
Sent: Tuesday, November 13, 2007 11:18 AM
To: Midrange Systems Technical Discussion
Subject: SQL Date Math
Bah...this is eluding me. I want to select records from a file where a
date value is between current date and 30 days ago. I thought I could
do something like:
mydate between current_date and current_date - 30, but that doesn't
seem to work. Gotta be easy...how do I do it? Thanks!
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.