Subject | Re: [firebird-support] Re: Number od days in selected month |
---|---|
Author | Ivan Prenosil |
Post date | 2006-08-07T11:39:16Z |
> If I'm correct I must have a SP for my operation, or I can use theseYou can use it directly
> statements in regular SQL Statements?
SELECT
EXTRACT(DAY FROM (MyDate - EXTRACT(DAY FROM MyDate) + 32
- EXTRACT(DAY FROM MyDate - EXTRACT(DAY FROM MyDate) + 32)))
FROM MyTable;
or store that expression into computed column.
Ivan