Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 28 Mar 2011 @ 16:43:14 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Reporting Question
From:   asim.kanungo


I can not get what you required in the output.

But I thought as you are requiring the topic of the next record. Please find the SQL.

I have used some short names for the fields.

     sel  T
     PID P,
     Topic T,
     cast(Activet as date) a,
     cast(Returnt as date) b,
     MDIFF(a,1,PID,Activet) c
     group by PID) A

Thanks & Regards

Asim K Kanungo

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023