X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C3008D1CC81 for ; Fri, 21 Nov 2003 14:23:46 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 81870-07 for ; Fri, 21 Nov 2003 10:23:18 -0400 (AST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by svr1.postgresql.org (Postfix) with SMTP id 6C969D1B520 for ; Fri, 21 Nov 2003 10:23:13 -0400 (AST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Fri Nov 21 15:23:00 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id PAA07901; Fri, 21 Nov 2003 15:22:59 +0100 (MET) From: Christoph Haller Message-Id: <200311211422.PAA13790@rodos> Subject: Re: Compare strings which resembles each other To: gulshan.babajee@parabolemaurice.com (Gulshan Babajee) Date: Fri, 21 Nov 2003 15:22:57 MET Cc: pgsql-sql@postgresql.org In-Reply-To: <94BCF3512BFBD711B79D004005420B1F0863DD@PMSERVER>; from "Gulshan Babajee" at Nov 19, 103 9:21 pm X-Mailer: Elm [revision: 212.4] X-Virus-Scanned: by amavisd-new at postgresql.org X-Amavis-Alert: BAD HEADER Non-encoded 8-bit data (char 9C hex) in message header 'Received' Received: \234by rodos.fzk.de... ^ X-Archive-Number: 200311/258 X-Sequence-Number: 16073 > > Hy, I have a table containing some rows. Each row contains a field name > which is of type String. > > For example: > in row1 string1 is "Adieu Poulet", > in row2 string2 is "Adieu a Poulet", > in row3 string3 is "Adiue Poulet", > in row4 string4 is "Adieu Pouleet", etc.. > (That is each string resembles each other a bit, they are somewhat similar > to each other) > > What type of query should I make so as it return me all these string. That > is I watn a query which return me strings which are similar or somewhat > similar to each other. > > thanks in advance > gulshan > $PGSQLD/contrib/tsearch/README.tsearch is your friend. Regards, Christoph