Re: basic SQL request

Поиск
Список
Период
Сортировка
От Shoaib Mir
Тема Re: basic SQL request
Дата
Msg-id bf54be870611051150y735032fck5c779ffedc5828a5@mail.gmail.com
обсуждение исходный текст
Ответ на basic SQL request  ("Alain Roger" <raf.news@gmail.com>)
Список pgsql-general
Check this out:

"= articletype.articletype_id AND"

and in your from clause you have something like this:

"from articles, articletypes, department"

So you need to fix "articletypes" or if it is "articletype"

Regards,
-------
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 11/6/06, Alain Roger < raf.news@gmail.com> wrote:
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 по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: basic SQL request
Следующее
От: Shane Ambler
Дата:
Сообщение: Re: Simple stored procedure examples?