Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 21035 invoked from network); 11 Apr 2008 15:41:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2008 15:41:00 -0000 Received: (qmail 34931 invoked by uid 500); 11 Apr 2008 15:41:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 34695 invoked by uid 500); 11 Apr 2008 15:41:00 -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 34576 invoked by uid 99); 11 Apr 2008 15:41:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 08:40:59 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 15:40:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E84F7234C0C7 for ; Fri, 11 Apr 2008 08:38:04 -0700 (PDT) Message-ID: <1503689024.1207928284950.JavaMail.jira@brutus> Date: Fri, 11 Apr 2008 08:38:04 -0700 (PDT) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3613) SELECT DISTINCT field FROM TABLE_NAME GROUP BY field, field2 In-Reply-To: <2089939599.1207920607944.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3613?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1258= 8003#action_12588003 ]=20 Bryan Pendleton commented on DERBY-3613: ---------------------------------------- I believe you get two rows because the results have been partitioned into two groups, as you specified in the GROUP BY. Within each group you are getting only one distinct value of 'field', but there are two groups total. > SELECT DISTINCT field FROM TABLE_NAME GROUP BY field, field2 > ------------------------------------------------------------- > > Key: DERBY-3613 > URL: https://issues.apache.org/jira/browse/DERBY-3613 > Project: Derby > Issue Type: Bug > Affects Versions: 10.3.2.1 > Environment: Windows XP > Reporter: Artur Ku=C5=9B > > Query 'SELECT DISTINCT field FROM TABLE_NAME GROUP BY field, field2' no= t work ok. > Distinct is ignored !!! --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.