Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Help another zipcode delimma

Re: Help another zipcode delimma

From: Gerard H. Pille <ghp_at_skynet.be>
Date: Sat, 17 Mar 2007 11:47:38 +0100
Message-ID: <45fbc73f$0$14230$ba620e4c@news.skynet.be>


anitra_tanner_at_yahoo.com wrote:
> Thanks for the help on the previous question but now I have been
> presented with the following issue.
>
> In the same field we have 3 different scenarios
>
> 5 digit zip
> 12345
>
> 6 digit zip
> 12345-
>
> 10 digit zip
> 12345-1311
>
> I want to say give me all the zips that are 5 and 6 digits and where
> there is a 6 digit, dont show the
> dash (-). so when my query runs they will all look like 5 digit
> zips. I have made a seprate query for the 10 digit.
>
> previously I used length(zip) = 5
>

select rtrim(zip_kolom,'-') from zip_tabel where length(rtrim(zip_kolom,'-')) = 5; Received on Sat Mar 17 2007 - 05:47:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US