Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 5324 invoked from network); 10 Sep 2009 15:09:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Sep 2009 15:09:22 -0000 Received: (qmail 55905 invoked by uid 500); 10 Sep 2009 15:09:22 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 55851 invoked by uid 500); 10 Sep 2009 15:09:21 -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 55843 invoked by uid 99); 10 Sep 2009 15:09:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2009 15:09:21 +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, 10 Sep 2009 15:09:18 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8B91C234C1EE for ; Thu, 10 Sep 2009 08:08:57 -0700 (PDT) Message-ID: <330475120.1252595337570.JavaMail.jira@brutus> Date: Thu, 10 Sep 2009 08:08:57 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4374) Document the CROSS JOIN operation in the reference manual In-Reply-To: <374457027.1252593900120.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-4374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753651#action_12753651 ] Knut Anders Hatlen commented on DERBY-4374: ------------------------------------------- The description of the operation could say something similar to this (inspired by the wording used in the other JOIN operators): A CROSS JOIN is a JOIN operation that produces the Cartesian product of two tables. Unlike other JOIN operators, it does not let you specify a join clause. You may however specify a WHERE clause in the SELECT statement. Examples that we may provide: SELECT * FROM T1 CROSS JOIN T2 which is equivalent to SELECT * FROM T1, T2 and SELECT * FROM T1 CROSS JOIN T2 WHERE T1.X = T2.X which is equivalent to SELECT * FROM T1 INNER JOIN T2 ON T1.X = T2.X And perhaps we should have a more complex example. For instance: SELECT * FROM T1 LEFT OUTER JOIN T2 CROSS JOIN T3 ON T1.X = T2.X WHERE T3.Z > 50 We should probably change the examples so that they use the same table names as the other JOIN examples. > Document the CROSS JOIN operation in the reference manual > --------------------------------------------------------- > > Key: DERBY-4374 > URL: https://issues.apache.org/jira/browse/DERBY-4374 > Project: Derby > Issue Type: Improvement > Components: Documentation > Affects Versions: 10.6.0.0 > Reporter: Knut Anders Hatlen > > CROSS JOIN was added in DERBY-4355. We should document it alongside the other join operations in the reference manual. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.