Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2FF5748F for ; Tue, 1 Nov 2011 18:02:16 +0000 (UTC) Received: (qmail 90615 invoked by uid 500); 1 Nov 2011 18:02:15 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 90591 invoked by uid 500); 1 Nov 2011 18:02:15 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 90583 invoked by uid 99); 1 Nov 2011 18:02:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 18:02:15 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 18:02:10 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RLIej-0004eC-RB for users@jackrabbit.apache.org; Tue, 01 Nov 2011 11:01:49 -0700 Date: Tue, 1 Nov 2011 11:01:49 -0700 (PDT) From: jsmarks To: users@jackrabbit.apache.org Message-ID: <1320170509825-3964627.post@n4.nabble.com> Subject: JCR_SQL2 joins MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Since XPATH is deprecated, I'm trying to learn SQL2 using the data from the auto populate function off the home page. Since there are three different primary node types (nt:file, nt:folder, nt:resource) in the resulting repository, I can't use a single primary node type in the SQL2. Unfortunately, when I try: select * from [nt:folder] as fo left outer join [nt:file] as fi on isdescendantnode(fi, fo) the error is "This query result contains more than one selector". Trying fo or fi in place of * tells me I need to supply a selector name. I conclude from this that one can't query for more than one primary node type. Am I missing something? It does not help that I've been unable to find many examples. -- View this message in context: http://jackrabbit.510166.n4.nabble.com/JCR-SQL2-joins-tp3964627p3964627.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.