Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72298 invoked from network); 29 Apr 2010 16:25:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Apr 2010 16:25:18 -0000 Received: (qmail 60827 invoked by uid 500); 29 Apr 2010 16:25:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 60805 invoked by uid 500); 29 Apr 2010 16:25:18 -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 60798 invoked by uid 99); 29 Apr 2010 16:25:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Apr 2010 16:25:17 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Apr 2010 16:25:08 +0000 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3TGOj5U003701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 29 Apr 2010 16:24:46 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3TGOijG007877 for ; Thu, 29 Apr 2010 16:24:44 GMT Received: from abhmt009.oracle.com by acsmt354.oracle.com with ESMTP id 201327881272558241; Thu, 29 Apr 2010 09:24:01 -0700 Received: from richard-hillegas-computer.local (/129.150.24.17) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 29 Apr 2010 09:23:59 -0700 Message-ID: <4BD9B29D.9090602@oracle.com> Date: Thu, 29 Apr 2010 09:23:57 -0700 From: Rick Hillegas User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Buddy Testing of Using Clause References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Auth-Type: Internal IP X-Source-IP: rcsinet13.oracle.com [148.87.113.125] X-CT-RefId: str=0001.0A090207.4BD9B2CE.013E:SCFMA4539811,ss=1,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Jayaram, The Reference Guide documents a fair amount of complexity related to the USING clause: 1) In expanding * in the SELECT list, both when * occurs by itself and when it is qualified with a table name 2) In transforming the USING clause into an ON clause when the column names are unqualified for different kinds of joins It would be great if you could verify these cases. Thanks, -Rick Jayaram Subramanian wrote: > Hi, > Could i have your thoughts and more ideas for testing the "using" > functionality.. > > With Regards > Jayaram > > On Wed, Apr 28, 2010 at 10:31 PM, Jayaram Subramanian > wrote: > >> Hi, >> I tried the following view based scenario of the using clause and >> found the code flow through without issues >> s.execute("create table t1(a int, b int, c int)"); >> s.execute("create table t2(a int, b int, c int)"); >> s.execute("create table t3(a int, b varchar(5), c int)"); >> s.execute("create view aview(a,b) as select a,t3.c from t1 join t3 >> using (c,a)"); >> s.execute("insert into t1 values (1,2,3),(2,3,4),(4,4,4)"); >> s.execute("insert into t2 values (1,2,3),(2,3,4),(5,5,5)"); >> s.execute("insert into t3 values " + >> "(2,'abc',8),(4,'def',10),(null,null,null)"); >> ResultSet rs=s.executeQuery("select * from aview join t1 using (b)"); >> >> With Regards >> Jayaram >> >> > >