basic SQL request

From: "Alain Roger" <raf(dot)news(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: basic SQL request
Date: 2006-11-05 19:42:12
Message-ID: 75645bbb0611051142u5ce1f38aw730cad439ac00bbd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

i've tried to run a basic SQL request as followed :
select *
from articles, articletypes, department
where
articles.articletype_id = articletype.articletype_id AND
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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Marco Bizzarri 2006-11-05 19:47:46 Re: basic SQL request
Previous Message Martijn van Oosterhout 2006-11-05 19:19:57 Re: Simple stored procedure examples?