Re: [SQL] set difference

2002-10-16 Thread Tom Lane
=?iso-8859-1?Q?Domoszlai_L=E1szl=F3?= <[EMAIL PROTECTED]> writes: > So, do you think a DIFFERENCE or EXCEPT SYMMETRIC clause will be reasonable > feauture for postgresql? I doubt it; haven't heard a request for it before, and AFAICS there's no such thing in the SQL spec...

Re: [SQL] set difference

2002-10-16 Thread Domoszlai László
Tom Lane wrote: > > I would like to make symmetrical(set) difference in a query. > > But the simpliest way I could find is > > > select id from a > > except > > select id from b > > union > > select id from b > > except > > select id from a > > > Is there any better solution for this problem?

Re: [SQL] set difference

2002-10-15 Thread Tom Lane
=?iso-8859-1?Q?Domoszlai_L=E1szl=F3?= <[EMAIL PROTECTED]> writes: > I would like to make symmetrical(set) difference in a query. > But the simpliest way I could find is > select id from a > except > select id from b > union > select id from b > except > select id from a > Is there any better

[SQL] set difference

2002-10-15 Thread Domoszlai László
Hello, I would like to make symmetrical(set) difference in a query. But the simpliest way I could find is select id from a except select id from b union select id from b except select id from a Is there any better solution for this problem? Thanks Laca ---(end of