pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Johnson <tim@celestialdesign.co.uk>
To: pgsql-sql@postgresql.org
Subject: Re: select substr???
Date: Mon, 9 Apr 2001 18:05:55 +0100
Message-ID: <NBBBLHOPPPPCHCIABAFGOEDEDKAA.tim@celestialdesign.co.uk> (raw)

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.




view thread (8+ messages)  latest in thread

Message-ID: <NBBBLHOPPPPCHCIABAFGOEDEDKAA.tim@celestialdesign.co.uk>
Permalink:  ../NBBBLHOPPPPCHCIABAFGOEDEDKAA.tim@celestialdesign.co.uk/
Also on:    postgresql.org/message-id/NBBBLHOPPPPCHCIABAFGOEDEDKAA.tim@celestialdesign.co.uk

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tim@celestialdesign.co.uk
  Subject: Re: select substr???
  In-Reply-To: <NBBBLHOPPPPCHCIABAFGOEDEDKAA.tim@celestialdesign.co.uk>
  References: <NBBBLHOPPPPCHCIABAFGOEDEDKAA.tim@celestialdesign.co.uk>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox