You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Edson Carlos Ericksson Richter <ed...@mgrinformatica.com.br> on 2003/04/15 14:55:28 UTC
Re: PB Query question (Solved)
Yes, it's solved with ReportQueryByCriteria, then adding as
mainCriteria.addIn (only I needed was check API docs).
Thanks.
Edson Richter
----- Original Message -----
From: "Edson Carlos Ericksson Richter" <ed...@mgrinformatica.com.br>
To: "'OJB Users List'" <oj...@db.apache.org>
Sent: Monday, April 14, 2003 5:24 PM
Subject: PB Query question
I know that this is a boring question, and I have a "little impression" that
this will be solved using two Query object, but let's go:
I need to execute the following query
select * from TB_PESSOAFJ
where CO_PESSOAFJ = (select min(CO_PESSOAFJ)
from TB_PESSOAFJ
where CO_PESSOAFJ > 0)
Where 0 (in the inner query) is a parameter.
Can someone point me the right direction?
Thanks,
Edson Richter
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10/4/2003
Re: PB Query question (Solved)
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi edson,
that's the perfect world: users solve their problems themselves.
jakob
Edson Carlos Ericksson Richter wrote:
>Yes, it's solved with ReportQueryByCriteria, then adding as
>mainCriteria.addIn (only I needed was check API docs).
>
>Thanks.
>
>Edson Richter
>
>----- Original Message -----
>From: "Edson Carlos Ericksson Richter" <ed...@mgrinformatica.com.br>
>To: "'OJB Users List'" <oj...@db.apache.org>
>Sent: Monday, April 14, 2003 5:24 PM
>Subject: PB Query question
>
>
>I know that this is a boring question, and I have a "little impression" that
>this will be solved using two Query object, but let's go:
>
>I need to execute the following query
>
>select * from TB_PESSOAFJ
>where CO_PESSOAFJ = (select min(CO_PESSOAFJ)
> from TB_PESSOAFJ
> where CO_PESSOAFJ > 0)
>
>Where 0 (in the inner query) is a parameter.
>
>Can someone point me the right direction?
>
>Thanks,
>
>Edson Richter
>
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.471 / Virus Database: 269 - Release Date: 10/4/2003
>
>