Re: basic SQL request

From: Adrian Klaver <aklaver(at)comcast(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: "Alain Roger" <raf(dot)news(at)gmail(dot)com>
Subject: Re: basic SQL request
Date: 2006-11-05 19:48:01
Message-ID: 200611051148.01769.aklaver@comcast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sunday 05 November 2006 11:42 am, Alain Roger wrote:
> Hi,
>
> i've tried to run a basic SQL request as followed :
> select *
> from articles, articletypes, department
^ s
> where
> articles.articletype_id = articletype.articletype_id AND
^ no s
> articles.department_id = department.department_id AND
> articles.validity_period_end > now()
>
> and i got the following error message :
> ERROR: missing FROM-clause entry for table "articletype"
>
> i'm confused now, if i use LEFTJOIN it's the same, so where is the trouble
> ?
>
> thx,
>
> AL.
The table name in the FROM clause has an s on the end. The name in the WHERE
clause does not.

--
Adrian Klaver
aklaver(at)comcast(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shoaib Mir 2006-11-05 19:50:48 Re: basic SQL request
Previous Message Marco Bizzarri 2006-11-05 19:47:46 Re: basic SQL request