what I meant was to convert it to a native SQL Query.
Here is a working example:
SQL code to create table and insert sample records:
Code:
create table company(coid number primary key, name varchar2(32));
create table person(pid number primary key, fkcoid number,
pname varchar2(32),
birthdate date);
alter table person add constraint fk_co foreign key (fkcoid) references
company(coid);
delete from person;
delete from company;
insert into company values(1,'acme');
insert into company values(2,'toy-r-us');
insert into company values(3,'walmart');
insert into company values(4,'no people');
insert into person values(1,1,'jon1',sysdate-50);
insert into person values(2,1,'bob1',sysdate-3);
insert into person values(3,1,'sue1',sysdate-1);
insert into person values(4,2,'marty2',sysdate-5);
insert into person values(5,2,'fred2',sysdate-2);
insert into person values(6,3,'jeff3',sysdate);
commit;
SQL code to do outter join select.
Code:
select
comp.coid ,
comp.name ,
p.pname
from
Company comp
left outer join
person p on p.fkcoid=comp.coid
and p.birthdate > sysdate-5;