Is there any way to use except that won't remove the non-distinct rows from the left side of the query?
"Ray Madigan" <ray@madigans.org> writes:
> Is there any way to use except that won't remove the non-distinct rows from
> the left side of the query?
EXCEPT ALL might or might not do what you're hoping for. Check the
manual (I think the SELECT reference page is what to look at).
regards, tom lane
I tried using EXCEPT ALL but it seems to only remove one row when there is
more then one matching row?
Thanks
Ray Madigan
-----Original Message-----
From: pgsql-sql-owner@postgresql.org
[mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Tom Lane
Sent: Monday, February 04, 2008 6:20 PM
To: Ray Madigan
Cc: Pgsql-Sql
Subject: Re: [SQL] Except without elimination of non-distinct rows
"Ray Madigan" <ray@madigans.org> writes:
> Is there any way to use except that won't remove the non-distinct rows
from
> the left side of the query?
EXCEPT ALL might or might not do what you're hoping for. Check the
manual (I think the SELECT reference page is what to look at).
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера