Subject | Re: [firebird-support] Subtract Years from a Date Value in SQL |
---|---|
Author | Magnus Titho |
Post date | 2005-03-01T15:48:51Z |
Christian Gütter schrieb am 01.03.2005 16:41:
select datefield - (100 * 365.25) from table
:)
(Problem are the leap years)
> is there a reliable way to subtract e. g. 100 years from aAt least approximately:
> date value?
>
> My problem is that I would like to subtract 100 years from a given set
> of date values and it would be very convenient to do it with a simple
> SQL statement.
select datefield - (100 * 365.25) from table
:)
(Problem are the leap years)
> ChristianMagnus