Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 52320 invoked from network); 14 Jun 2005 08:01:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2005 08:01:33 -0000 Received: (qmail 9276 invoked by uid 500); 14 Jun 2005 08:01:31 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 9259 invoked by uid 500); 14 Jun 2005 08:01:31 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 9186 invoked by uid 99); 14 Jun 2005 08:01:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mail.seitenbau.net (HELO mail.seitenbau.net) (194.175.229.106) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Jun 2005 01:01:25 -0700 Received: from [195.127.188.18] (helo=www.seitenbau.net) by router1.seitenbau.net with esmtp (Exim 4.43) id 1Di6Lq-0004Dd-DI for torque-user@db.apache.org; Tue, 14 Jun 2005 10:00:50 +0200 In-Reply-To: <4A2E265BA43ED5408940E6C0815899EB03B5097B@DBLMXS3> Subject: RE: criteria-problem To: "Apache Torque Users List" X-Mailer: Lotus Notes Release 6.0 September 26, 2002 Message-ID: From: Thomas Fischer Date: Tue, 14 Jun 2005 10:00:48 +0200 X-MIMETrack: Serialize by Router on www/seitenbau(Release 6.5.1|January 21, 2004) at 14.06.2005 10:00:49 AM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, the problem is that at the moment, joins between two tables other than using the = operator are not possible as far as I know. Perhaps it is possible to split the query into two. The last resort would be to create the query by hand and use BasePeer.doSelect() Thomas "Dressler,Erik(externe MA)" schrieb am 10.06.2005 11:02:04: > > hello, everybody! > > is it possible to create a criteria for the statement below??? > > SELECT p.statecode AS Vater, s.statecode AS Nachfolger > FROM processstate p, processstate s > WHERE s.lft BETWEEN p.lft AND p.rgt > AND s.statecode = 'D225' > ORDER BY p.lft; > > i have problems to assign one table two aliases and to select the same > column twice with two different aliases!!! > > i'm completely mystified!!!! > > greetz, erik > > * * * * * * D I S C L A I M E R * * * * * * * > > This message is confidential and intended for the named addressee(s) only. > If you are not the intended recipient, please contact the sender by E-Mail > return and then delete this message from your system. You should not copy > or use it or disclose its contents to any other person. > > If any part of this message is illegible or if you suspect that the message > may have been intercepted or amended, please contact the sender. > Dresdner Bank Luxembourg S.A. cannot accept any responsibility for the > accuracy or completeness of this message without further investigation. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org