Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 93808 invoked from network); 17 Dec 2009 22:24:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 22:24:46 -0000 Received: (qmail 42908 invoked by uid 500); 17 Dec 2009 22:24:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42881 invoked by uid 500); 17 Dec 2009 22:24:45 -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 42873 invoked by uid 99); 17 Dec 2009 22:24:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 22:24:45 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI 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; Thu, 17 Dec 2009 22:24:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5A785234C4D2 for ; Thu, 17 Dec 2009 14:24:18 -0800 (PST) Message-ID: <217712129.1261088658369.JavaMail.jira@brutus> Date: Thu, 17 Dec 2009 22:24:18 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4397) Allow ORDER BY in subqueries In-Reply-To: <116396587.1254787171373.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-4397: --------------------------------- Attachment: derby-4397-2.stat derby-4397-2.diff Committed derby-4397-2 as svn 891952. This version of the patch is the same as #1, except some cleanup in the new test, OrderByInSubqueries. I am not totally comfortable with the level of testing for this feature yet, but I will probably need to get OFFSET/FETCH in subqueries working before I can tease out more bugs, so I chose to commit this patch now. > Allow ORDER BY in subqueries > ---------------------------- > > Key: DERBY-4397 > URL: https://issues.apache.org/jira/browse/DERBY-4397 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Attachments: derby-4397-1.diff, derby-4397-1.stat, derby-4397-2.diff, derby-4397-2.stat, derby-4397-all-subqueries.diff, derby-4397-all-subqueries.stat, derby-4397-insert-from-exists.diff, derby-4397-insert-from-exists.stat, orderBySpec.html, orderBySpec.html, orderBySpec.html, orderBySpec.html, orderBySpec.html > > > SQL 2008 allows ORDER BY to be specified in subqueries. In conjunction with OFFSET/FETCH and/or ROW_NUMBER > meaningful subqueries with row ordering may be formulated. Cf. MySQL's LIMIT may be used in subqueries as well. > Note that OFFSET/FETCH is currently not allowed in subqueries, either. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.