Results 1 to 2 of 2

Thread: Average Date

  1. #1
    Join Date
    Aug 2003
    Posts
    1

    Unanswered: Average Date

    Is there a simple way to average a group of dates? AVG(mydatecolumn) doesn't work (inconsistent datatypes). I'm thinking there must be some function out there that someone has already written that does this....

    TIA

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool

    You could try something like this:

    select to_date(trunc(jx),'J') from (
    select avg(to_char(pw_last_login_dt,'J')) jx from emp)
    /
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •