Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 31 Aug 2000 @ 10:16:40 GMT

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

Subj:   Re: Macro parameters
From:   Barbara George


Thanks for the reply.

     select region, store_no, trim( leading from (store_no (format
     'zzzzzzzzz9'))) as st2, char(st2)
       from  stores
     where index('10 12'||' ', trim( leading from (store_no (format
     'zzzzzzzzz9'))||' '  )   )  >0 ;

returns stores 2, 10, & 12

Changing the format to '99' to force two digits for each number returns only stores 10 & 12.


  <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: 27 Dec 2016