Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 08 Oct 2004 @ 23:43:37 GMT


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


Subj:   Re: Order by substr(columnname from 7)
 
From:   Frank C. Martinez IV

And a small variation on the theme for all the old Oracle guys who like numbers:

     SELECT databasename,
            CASE
               WHEN accountname = '$M2$&LAdhoc'
                  THEN SUBSTR(accountname,7)
                  ELSE SUBSTR(accountname,6)
             END
       FROM dbc.databases
      ORDER BY 2;


     
  <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