Re: exclude part of result

Поиск
Список
Период
Сортировка
От A. Kretschmer
Тема Re: exclude part of result
Дата
Msg-id 20080627064853.GA14456@a-kretschmer.de
обсуждение исходный текст
Ответ на exclude part of result  (Tarlika Elisabeth Schmitz <postgresql@numerixtechnology.de>)
Список pgsql-sql
am  Fri, dem 27.06.2008, um  0:35:38 +0100 mailte Tarlika Elisabeth Schmitz folgendes:
> 
> SELECT DISTINCT a, b, c, now(), count(item_pk) 
> FROM product
> LEFT JOIN item ON item.product_fk = product_pk
> WHERE ...
> GROUP BY a, b, c
> 
> 
> I have another table 'navigation' which also has the columns a,b,c
> 
> If the combination of (a,b,c) exists in 'navigation', then exclude it
> from above result. How can I achieve this?

For instance with EXCEPT.


Regards, Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


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

Предыдущее
От: Tarlika Elisabeth Schmitz
Дата:
Сообщение: exclude part of result
Следующее
От: Tarlika Elisabeth Schmitz
Дата:
Сообщение: Re: exclude part of result