Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 07 Oct 2004 @ 22:24:26 GMT


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


Subj:   Re: Order by substr(columnname from 7)
 
From:   Vanole, Mike

Here another possibility, for what it's worth. I'm havin' fun now.

     select databasename, accountname
     from dbc.databases
     order by case when accountname = '$M2$&LAdhoc' then
     substr(accountname,7) else substr(accountname,6) end;


     
  <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