View Single Post
  #7 (permalink)  
Old Feb 21st, 2008, 12:38
puzz puzz is offline
Junior Member
Join Date: Feb 2008
Location: Poreč
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Query postcode issue?

Quote:
Originally Posted by welshstew View Post
what if they don't put a space in?
If he is sure that the right part is always 3 characters long then: trim(substring(postcode,1,length(postcode)-3));
Reply With Quote