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 Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008