in reply to Re^3: Excel automatically pulling data from Perl?
in thread Excel automatically pulling data from Perl?
After messing around with http://www.postgresql.org/docs/8.2/static/functions-datetime.html the best that I could find in PostgreSQL looks something like this:
(I guess my Perl solution was longer, but it was more obvious code for me.)SELECT 12 * extract(year from date1) + extract(month from date1) - 12 * extract(year from date2) - extract (month from date2) as month_spread FROM foo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Excel automatically pulling data from Perl?
by jbert (Priest) on Jun 29, 2007 at 06:07 UTC | |
by tilly (Archbishop) on Jun 29, 2007 at 16:54 UTC | |
by jbert (Priest) on Jul 01, 2007 at 16:45 UTC | |
by tilly (Archbishop) on Jul 02, 2007 at 20:43 UTC |