basic SQL request

Поиск
Список
Период
Сортировка
От Alain Roger
Тема basic SQL request
Дата
Msg-id 75645bbb0611051142u5ce1f38aw730cad439ac00bbd@mail.gmail.com
обсуждение исходный текст
Ответы Re: basic SQL request  ("Marco Bizzarri" <marco.bizzarri@gmail.com>)
Re: basic SQL request  (Adrian Klaver <aklaver@comcast.net>)
Re: basic SQL request  ("Shoaib Mir" <shoaibmir@gmail.com>)
Список 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.

В списке pgsql-general по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Simple stored procedure examples?
Следующее
От: "Marco Bizzarri"
Дата:
Сообщение: Re: basic SQL request