IANADBA2

Luciano Evaristo passes along a cool tip on how to get an average from a datetime field:

To workaround this, just change the SQL statement to SELECT CAST(AVG(CAST(MyTable.MyDateTimeField AS float)AS datetime) FROM MyTable and things will work properly.

Cool tip!

Print | posted on Tuesday, May 25, 2004 9:30 AM

Comments on this post

No comments posted yet.

Your comment:

 (will show your gravatar)
 
Please add 2 and 6 and type the answer here: