in reply to find difference in dates/items in same column
You can add a calculated column to your SQL query
SELECT brand, date, weight, datediff(day, '2001/01/01', date) AS daysS +inceMillemium FROM test2 ORDER BY brand, date ASC
And then use [daysSinceMillemium] column to calculate differences in days. Thus you use simple arithmetic instead of Time::Local.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: find difference in dates/items in same column
by zerocred (Beadle) on Nov 14, 2008 at 10:08 UTC | |
by ccn (Vicar) on Nov 14, 2008 at 10:44 UTC | |
by Anonymous Monk on Nov 14, 2008 at 10:55 UTC |