Data arithmetic
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Data arithmetic

  1. #1
    Join Date
    Nov 2000
    Location
    London
    Posts
    83

    Question

    Problem: I want to calculate the difference (in minutes) between the max and min of a date column in a table, but I'm not sure of the syntax.

    Could anyone help me?


  2. #2
    Join Date
    Oct 2000
    Posts
    21
    EMP: NAME, JOINDATE

    select (max(joindate) - min(joindate))*24*60 from emp;

    Does this match with your requirement?
    Pao de dabba
    B'ham

Posting Permissions

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


Click Here to Expand Forum to Full Width