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

Hi

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
     from
     (sel
     PID P,
     Topic T,
     cast(Activet as date) a,
     cast(Returnt as date) b,
     MDIFF(a,1,PID,Activet) c
     from 
     group by PID) A
     where
     c<14

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