Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 08 Apr 2011 @ 19:00:02 GMT


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


Subj:   SUBSTR function and logonsource
 
From:   JAMES PARK

Esteemed users,

I'd like to generate only Userid (RANDERSON) through below SQL. I don't want anything to be generated after Userid in that column. How should I modify substr line?

     --SQL

     SEL
     .
     .
     .
     ,substr(b.logonsource,55,17) as "UserID"
     .
     .
     FROM  dbc.AccessLog a,
       dbc.LogOnOff b


     --Output of UserID column.
     RANDERSON  WINDDI  01


     
  <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