|
SELECT date('2004-02-29') - date('2003-02-28') FROM qsqptabl gives 00010001 (1 year + 1 day)
SELECT date('2005-02-28') - date('2004-02-28') FROM qsqptabl gives 00010000 (1 year)
SELECT date('2005-02-28') - date('2003-02-28') FROM qsqptabl gives 00020000 (2 years, no accounting for the extra day)
SELECT date('2005-02-28') - date('2004-02-29') FROM qsqptabl gives 00001128 (11 months + 28 days)
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.