|
The result of subtracting two timestamps is a decimal equivalent of yyyymmddhhmmss.######. Therefore any result greater than 080000.000000 is more than 8 hours select createdate, now(), now()-createdate from qtemp/todd CREATEDATE NOW ( ) Numeric Expression 2003-01-01-00.46.35.000000 2006-06-27-11.51.31.645886 30,526,110,456.645886 2006-06-27-08.46.35.000000 2006-06-27-11.51.31.645886 30,456.645886 select createdate, now(), now()-createdate from qtemp/todd where now()-createdate>080000 ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8.. CREATEDATE NOW ( ) Numeric Expression 2003-01-01-00.46.35.000000 2006-06-27-11.52.14.321970 30,526,110,539.321970 Rob Berendt
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.