Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 27 May 2010 @ 20:06:18 GMT

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

Subj:   Re: QUALIFY is not working
From:   Mohommod.Khan

Try creating a derived table or use a column alias some thing like this:

     select FIELD1,
     rank(FIELD 2) as myRankedFiled
      from TEST.TABLE1
      qualify  myRankedFiled=1



  <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: 23 Jun 2019