× 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.



I don't know about a query but you can do it with the SQL days function.
This assumes that the inputs, date1 and date2, are both in date format.

SELECT date2, date1, ((days(date2) - days(date1)) as NoOfDays

Hope this helps.

Gord Royle

-----Original Message-----
From: gcrane@xxxxxxxxxxxxxxx [mailto:gcrane@xxxxxxxxxxxxxxx]
Sent: Thursday, February 27, 2003 3:37 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Query calc # days


OK, you all know I am not technical.  My programmer is on vacation.  I 
need to do a compare of date1 to date2 and calculate the number of days 
between.  Can I do that in a query?  If yes, any direction of how would be 
greatly appreciated.

Gail Crane
Johanson Manufacturing Corp.
phone 973-334-2676
gcrane@xxxxxxxxxxxxxxx
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.