Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 71437 invoked from network); 13 Jan 2007 10:36:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2007 10:36:49 -0000 Received: (qmail 18476 invoked by uid 500); 13 Jan 2007 10:36:55 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 18448 invoked by uid 500); 13 Jan 2007 10:36:55 -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 18439 invoked by uid 99); 13 Jan 2007 10:36:54 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jan 2007 02:36:54 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Jan 2007 02:36:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A38747142F7 for ; Sat, 13 Jan 2007 02:36:27 -0800 (PST) Message-ID: <23402389.1168684587666.JavaMail.jira@brutus> Date: Sat, 13 Jan 2007 02:36:27 -0800 (PST) From: "Tomohito Nakayama (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2239) Example of SelectExpression for GROUP BY clause is mistaken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Example of SelectExpression for GROUP BY clause is mistaken ----------------------------------------------------------- Key: DERBY-2239 URL: https://issues.apache.org/jira/browse/DERBY-2239 Project: Derby Issue Type: Bug Components: Documentation Environment: http://db.apache.org/derby/docs/dev/ref/rrefselectexpression.html Reporter: Tomohito Nakayama There is next example. -- List head count of each department, -- the department number (WORKDEPT), and the average departmental salary (SALARY) -- for all departments in the EMPLOYEE table. -- Arrange the result table in ascending order by average departmental salary. SELECT WORKDEPT, AVG(SALARY) FROM EMPLOYEE GROUP BY WORKDEPT ORDER BY 1 Comment told that head count of each department is listed, but not exaxtly. I think count(*) is needed here. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira