Compute Time Difference in Teradata

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iceman23
    New Member
    • Aug 2009
    • 12

    Compute Time Difference in Teradata

    Hello,

    My question in teradata would be, will it be possible to get the time difference of 2 given date/time, given that the first value of the would be the 1st row of 2nd column then the second value would be the 2nd row of 1st column.

    You may check the attachment.

    Thanks in advance.
    Attached Files
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Check LEAD AND LAG to achieve your result

    Comment

    Working...