Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 54797 invoked from network); 11 Aug 2005 01:15:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 01:15:41 -0000 Received: (qmail 91194 invoked by uid 500); 11 Aug 2005 01:15:40 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 90950 invoked by uid 500); 11 Aug 2005 01:15:39 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 90751 invoked by uid 99); 11 Aug 2005 01:15:38 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_FAIL,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2005 18:15:37 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 9D19FEC for ; Thu, 11 Aug 2005 03:15:36 +0200 (CEST) Message-ID: <1791211192.1123722936642.JavaMail.jira@ajax.apache.org> Date: Thu, 11 Aug 2005 03:15:36 +0200 (CEST) From: "David Van Couvering (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-171) Need Correlation ID in UPDATE/DELETE statements In-Reply-To: <1174248519.1110472793348.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-171?page=all ] David Van Couvering updated DERBY-171: -------------------------------------- Fix Version: 10.1.1.1 Version: 10.1.1.1 (was: 10.0.2.0) > Need Correlation ID in UPDATE/DELETE statements > ----------------------------------------------- > > Key: DERBY-171 > URL: http://issues.apache.org/jira/browse/DERBY-171 > Project: Derby > Type: Improvement > Components: SQL > Versions: 10.1.1.1 > Environment: Windows XP SP1 Professional > Reporter: George Baklarz > Assignee: Rick Hillegas > Fix For: 10.1.1.1 > Attachments: bug171.diff, bug171.html > > You currently can't use a correlation ID in an UPDATE/DELETE statement. This makes it cumbersome to do the following: > UPDATE EMPLOYEE_BONUS > SET BONUS = (SELECT SUM(BONUSES.BONUS) FROM BONUSES WHERE > EMPLOYEE_BONUS.EMPL_ID = BONUSES.EMPL_ID); > The use of a correlation ID makes this easier to code. > UPDATE EMPLOYEE E > SET BONUS = (SELECT SUM(B.BONUS) FROM BONUSES B WHERE B.EMPL_ID = E.EMPL_ID); > This is particularly important if you get carried away with long SCHEMA and TABLE names! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira