Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Tue, 28 Jun 2005 @ 16:06:06 GMT

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

Subj:   Re: Comma in string
From:   Victor Sokovin

  I am looking for a way to count over to a comma in an address field that combines city, state and zip (10 characters including the '-') in order to remove the city and state and place them in their own fields. Any way to look for a comma in each row where the length of the string to the comma can vary?  

Take a look at the POSITION function and/or check out the recent thread entitled "String parsing". The thread covers a more generic situation, which you don't seem to need, so don't get intimidated by all the SQL you might find there.



  <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