Re: Dealing with complex queries

From: Francisco Reyes <lists(at)natserv(dot)com>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: Dealing with complex queries
Date: 2003-02-04 14:54:59
Message-ID: 20030204094134.O60664-100000@zoraida.natserv.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 4 Feb 2003, Bruno Wolff III wrote:

> On Mon, Feb 03, 2003 at 16:32:10 -0500,
> Francisco Reyes <lists(at)natserv(dot)com> wrote:
> > Any hints suggestions on dealing with complex queries.
>
> > substring(ppl.carried_as from 1 for 3)
> > = substring(jc.last from 1 for 3) and
>
> Joining on substrings is a good sign that your design needs rethinking.

The tables in the substring comparison are some of our tables compared
to tables supplied by another company. It is a fact that the names don't
always match and have variations.

The whole excersise is to match by names to then populate our table with
their keys so in the future we can match by keys in feeds we receive from
them.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-02-04 16:04:31 Re: Dealing with complex queries
Previous Message BRIAN 2003-02-04 14:52:28 PostgreSQL v MSSQL