Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 64382 invoked from network); 28 Feb 2005 18:14:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Feb 2005 18:14:58 -0000 Received: (qmail 414 invoked by uid 500); 28 Feb 2005 18:14:58 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 161 invoked by uid 500); 28 Feb 2005 18:14:56 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 148 invoked by uid 99); 28 Feb 2005 18:14:56 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from adsl-209-233-18-245.dsl.snfc21.pacbell.net (HELO buttons.boynes.com) (209.233.18.245) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 28 Feb 2005 10:14:55 -0800 Received: from [192.168.37.168] (unknown [192.168.37.168]) by buttons.boynes.com (Postfix) with ESMTP id B23D911AC9 for ; Mon, 28 Feb 2005 10:14:53 -0800 (PST) Message-ID: <42235F98.5010204@apache.org> Date: Mon, 28 Feb 2005 10:14:48 -0800 From: Jeremy Boynes User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Development Subject: Re: INTERSECT and EXCEPT Design References: <421FBEC8.5020803@sbcglobal.net> <001801c51ba6$bc060780$1401a8c0@rpws002> <42235E21.1020606@sbcglobal.net> In-Reply-To: <42235E21.1020606@sbcglobal.net> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jack Klebanoff wrote: > RPost wrote: > >> >Jack Klebanoff wrote: >> >> >The syntax is (roughly): >> >> />queryExpression/ INTERSECT [ALL] /queryExpression/ >> />queryExpression/ EXCEPT [ALL] /queryExpression/ >> >> Although DISTINCT is implicit if ALL is not specified the SQL standard >> also allows the DISTINCT operator to be specified explicitly. Would it >> make sense to do that in Derby also? >> >> INTERSECT [ALL | DISTINCT] and EXCEPT [ALL | DISTINCT] >> > Other relational databases do not all support the "DISTINCT" keyword, so > applications that use it will not be portable. > It is part of the spec so there is no reason not to support it; people seeking greater portability between (non-compliant) databases simply don't need to use it. > That being said, I think that adding the "DISTINCT" keyword would be a > good project for a neophyte who wants to get his or her feet wet in the > Derby parser. > I'll take it on as a first real commit (vs. patch). -- Jeremy