Connecting Tech Pros Worldwide Forums | Help | Site Map

Compute Time Difference in Teradata

Newbie
 
Join Date: Aug 2009
Posts: 12
#1: Oct 2 '09
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 Thumbnails
difference.jpg  
amitpatel66's Avatar
Moderator
 
Join Date: Mar 2007
Location: Hyderabad, India
Posts: 2,192
#2: Oct 15 '09

re: Compute Time Difference in Teradata


Check LEAD AND LAG to achieve your result
Reply