Re: Outer Joins

Поиск
Список
Период
Сортировка
От Marc Rohloff
Тема Re: Outer Joins
Дата
Msg-id sa013083.027@eskom.co.za
обсуждение исходный текст
Ответ на Outer Joins  ("Marc Rohloff" <Marc.Rohloff@eskom.co.za>)
Список pgsql-sql
>> select a.col1, b.col2 from a,b
>> where a.col1 = b.col2
>>    or  a.col1 not in (select b.col2 from b)

>This would work, but it would be *much* slower than a UNION query.  "Not
>In" queries are perhaps the slowest you can run; see the earlier thread
>"Query Problem" for a discussion.  UNION queries are, in fact, very fast
>... just awkward to code and manipulate.

Why should this be slower since the UNION Query still has an identical not in clause?
This is far easier (for me) to read.

Marc




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: INSERT [IGNORE] INTO TABLE
Следующее
От: "Gerhard Dieringer"
Дата:
Сообщение: Antw: Outer Joins