From: | "Demel, Jeff" <Jeff(dot)Demel(at)JavelinDirect(dot)com> |
---|---|
To: | <pgsql-sql(at)postgresql(dot)org> |
Subject: | metaphone and nysiis in postgres |
Date: | 2007-02-07 19:46:42 |
Message-ID: | 136ED738BD4F1545B97E4AC06FF6370734C28D@DMSP-MSG-EVS01.mail.pvt |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Microsoft SQL server has two extended stored procedures that I need in Postgres: xp_nysiis and xp_metaphone. They do fuzzy matching on strings. Are there Postgres alternatives for these? Or maybe some other way to do phonetic/fuzzy matching that would be as effective?
-Jeff
-----Original Message-----
From: pgsql-sql-owner(at)postgresql(dot)org [mailto:pgsql-sql-owner(at)postgresql(dot)org] On Behalf Of A. Kretschmer
Sent: Wednesday, February 07, 2007 11:45 AM
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] interval as hours or minutes ?
am Wed, dem 07.02.2007, um 19:03:35 +0200 mailte Aarni Ruuhimäki folgendes:
> Hi all,
>
> Could anyone please tell an easy way to get total hours or minutes
> from an interval ?
>
> SELECT SUM(stop_date_time - start_date_time) AS tot_time FROM
> work_times WHERE user_id = 1;
Perhaps. You can, for instance, with extract(epoch from stop_date_time) retrieve the number of seconds and work with this.
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq
This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or any attachments by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you are not the intended recipient of this message or the employee or agent responsible for delivery of this email to the intended recipient, please notify the sender by replying to this message and then delete it from your system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is strictly prohibited and may be unlawful.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-02-07 20:08:48 | Re: metaphone and nysiis in postgres |
Previous Message | A. Kretschmer | 2007-02-07 17:44:32 | Re: interval as hours or minutes ? |