Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 26 Jun 2009 @ 19:01:02 GMT


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


Subj:   Re: Address Parsing
 
From:   Michael Larkins

  Example: If I have an address of "123 Main Street". How can I return 123?  


If you are confident in your data being in the format of number followed by street, you could do the following:

     substring(street_address from 1 for position(' ' in street address)-1)

Regards,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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