Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11775 invoked from network); 8 Oct 2009 07:05:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 07:05:55 -0000 Received: (qmail 99614 invoked by uid 500); 8 Oct 2009 07:05:55 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 99556 invoked by uid 500); 8 Oct 2009 07:05: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 99548 invoked by uid 99); 8 Oct 2009 07:05:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 07:05:55 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 07:05:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 56C01234C1EC for ; Thu, 8 Oct 2009 00:05:31 -0700 (PDT) Message-ID: <1000986324.1254985531341.JavaMail.jira@brutus> Date: Thu, 8 Oct 2009 00:05:31 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (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 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12763386#action_12763386 ] Knut Anders Hatlen commented on DERBY-4397: ------------------------------------------- Regarding 1), you're of course right, I somehow managed to misread the syntax. > 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 > Attachments: 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.