Average of dates [message #39271] |
Tue, 02 July 2002 11:20 |
jack
Messages: 123 Registered: September 2000
|
Senior Member |
|
|
I am attempting to derive the average of a date field based on all records in a table. The min() and max() work just fine now all I need is ...
select AVG(MyDate) from MY_TABLE;
I know the above does not work and that is why I am here. Any ideas? Convert the value to a number and then back to a date? If so what is the date to number conversion? I recall there is a way to get the difference from a fixed date in the past defined by the system but I don't recall the details.
TIA, Jack
|
|
|
|
|