Results 1 to 2 of 2

Thread: the average of how old the "newest" file is in a table?

  1. #1
    Join Date
    May 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default the average of how old the "newest" file is in a table?

    Hi,
    How do I get the "average of HOW old the "newest" file is" using Oracle from a Table? any idea??
    let say for example I have a table called A and I want to know HOW OLD is the NEWEST FILE in that table!!

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Just order by creation, which I'd assume is the default. The just grab the first result. Probably best if you use a table to track the date it was created, then it's easy. Order by that, then display that on the result.

    I have no idea why you're calling this an "average" and saying "newest", since the two terms are quite different.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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