Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 10 Feb 2016 @ 09:37:53 GMT


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


Subj:   Re: Split Table on Rank function
 
From:   Raveeji

     SELECT * FROM (
     SELECT D.*,RANK() OVER (ORDER BY KY) AS RNK FROM ( SELECT * FROM (SELECT 1000 AS KY) A
     UNION SELECT * FROM (SELECT 1009 AS KY) A UNION SELECT * FROM (SELECT 1005 AS KY) A UNION
     SELECT * FROM (SELECT 1100 AS KY) A UNION SELECT * FROM (SELECT 1010 AS KY) A UNION
     SELECT * FROM (SELECT 1006 AS KY) A
     ) D ) E WHERE E.KY IN (1000,1006,1010)


     
  <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