Re: Weird results when using schemas

From: Geert Jansen <geert(at)boskant(dot)nl>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Weird results when using schemas
Date: 2005-11-21 23:13:27
Message-ID: 43825497.9040401@boskant.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Fuhr wrote:
> You refer to shs.city.<column> in the select list, but in the from
> clause you've aliased shs.city to city. As the SELECT documentation
> says,
>
> When an alias is provided, it completely hides the actual name
> of the table or function; for example given FROM foo AS f, the
> remainder of the SELECT must refer to this FROM item as f not foo.
>

Michael,

Thanks a lot for your very helpful answer (thanks to Stephan Szabo as
well). I've now changed my query as per your indications and indeed it
works ok.

Best regards,
Geert

In response to

Browse pgsql-general by date

  From Date Subject
Next Message A.j. Langereis 2005-11-21 23:17:38 Difference in indexes
Previous Message Matthew Terenzio 2005-11-21 23:12:22 Timestamp with Timezone