Re: select substr??? - Mailing list pgsql-sql

From Tim Johnson
Subject Re: select substr???
Date
Msg-id NBBBLHOPPPPCHCIABAFGOEDEDKAA.tim@celestialdesign.co.uk
Whole thread Raw
Responses Re: Re: select substr???
Re: Re: select substr???
List pgsql-sql
Hi,

I have postgres 6.x (where x is something).

I have the following list of data

data
--------
ABC*
ABC
ABC-
ABC+
ABC
QWE~
ASD+
ASD#
KLASDHK-
KLASDHK+
KLASDHK
KLASDHK*


what I want to do is 'select distinct(data) [ignoring non alphanumeric
characters] order by data'

is there a way to do that? Changing the data stored in the table is not an
option as the suffixes are needed elsewhere..

Please help !!

Thanks,
Tim.



pgsql-sql by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Casting numeric to text
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: Casting numeric to text