Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 14 Nov 2006 @ 15:07:18 GMT


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


Subj:   Re: Help on SQL query
 
From:   Michael Larkins

RAJESH:

This is a perfect job for using MDIFF of 1 or manually subtracting MIN/OVER with ROWS 1 PRECEDING from the column where the function sorts and subtracts using your column in question. You will also need a QUALIFY looking for a difference between the numbers > 1 (a gap exists). These OLAP functions provide some very powerful capabilites.


Regards,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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