Re: Aliias names in select criteria

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Aliias names in select criteria
Дата
Msg-id 20020605084550.R14451-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Aliias names in select criteria  ("Bob Powell" <Bob@hotchkiss.org>)
Список pgsql-general
On Tue, 4 Jun 2002, Bob Powell wrote:

>
> To whom it may concern:
>
> The following selection criteria causes my box to start a process that gives no result.
>
> SELECT P.Last_Name, P.First_Name, S.Status, S.Entry_Year,
> S.Graduation_Year, S.Former_School, S.Day_or_Board, S.Admissions_Id,
> P.Participant_Id, P.Birthday, P.Modification_Date FROM Participants P,
> Students S WHERE Participant.Participant_Id = Students.Participant_Id

AFAIK the above is technically illegal.  Postgres assumes you meant to
have Participant and Students in the from list (in addition to P and S)
and thus you get a 4 way join with only some of the tables being
constrained.


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

Предыдущее
От: Andrew Sullivan
Дата:
Сообщение: Re: Re^3 : Solaris Performance - 64 bit puzzle
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: a trigger question