Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 37551 invoked from network); 20 Nov 2010 02:11:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Nov 2010 02:11:03 -0000 Received: (qmail 83666 invoked by uid 500); 20 Nov 2010 02:11:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83643 invoked by uid 500); 20 Nov 2010 02:11:34 -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: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 83636 invoked by uid 99); 20 Nov 2010 02:11:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 02:11:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Nov 2010 02:11:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAK2BDLV029109 for ; Sat, 20 Nov 2010 02:11:13 GMT Message-ID: <22556503.211501290219073661.JavaMail.jira@thor> Date: Fri, 19 Nov 2010 21:11:13 -0500 (EST) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-4909) Allow SELECT list column references not mentioned in GROUP BY if CR is functionally dependent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Allow SELECT list column references not mentioned in GROUP BY if CR is functionally dependent --------------------------------------------------------------------------------------------- Key: DERBY-4909 URL: https://issues.apache.org/jira/browse/DERBY-4909 Project: Derby Issue Type: Improvement Reporter: Dag H. Wanvik Presently, Derby rejects column references in a SELECT .. GROUP BY if the column reference isn't a grouping column. This was correct SQL as per SQL 1992, but later versions of the standard has loosened this to the present wording (e.g. SQL 2003, section 7.12 , SR 15: "If T is a grouped table, then let G be the set of grouping columns of T. In each contained in