Re: Many-to-many problem

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: Many-to-many problem
Дата
Msg-id 4BA3931A.8020407@iol.ie
обсуждение исходный текст
Ответ на Re: Many-to-many problem  (Grant Allen <gxallen@gmail.com>)
Список pgsql-general
On 18/03/2010 23:18, Grant Allen wrote:
> Hi Raymond,
>
>> From a strictly relational viewpoint, this is as easy as
>
> (select users.uid, apps.appcode from apps, users)
> except
> (select canaccess.uid, canaccess.appcode from canaccess)

Joe & Grant, thanks for your replies... I knew it had to be easy....
that'll teach me to finish working earlier while the brain is clear!

The cartesian product is no problem in my case, as the size of both
tables will never get any bigger than a few dozen rows each.

> It might suit you ... otherwise you'll need to go for the correlated
> subquery approach using not exists.

Can I ask for an example of this?

Thanks,

Ray.


--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

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

Предыдущее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: Order of Daily VACUUM, CLUSTER, REINDEX
Следующее
От: "Little, Douglas"
Дата:
Сообщение: MS Access 2007 update write conflict problem & resolution