thanks, but i don't think i can do what i'm looking for with this solution.
In fact i would like to make a join with multiple parameters like this:
tables:
StaffPlan
-id
-idwork
-idversionCoeff
Work
-id
Coeff
-id
-idwork
-idmonth
-idyear
-version
what i want for my staffplan, is to load a collection of coeff but not only based on the idCoeff.
I need to load like this:
Code:
select c.* from coeff c, staffplan p
where c.idwork = p.idword and c.version =
(select min(cc.version)
from coeff cc where
cc.idwork = c.idwork
and cc.idmonth = c.idmonth
and cc.idyear c.idyear
and cc.version >= p.Version)
So i have for example a filter on the p.Version which i don't think i can passed in parameter because it's the attribute of the current staffplan row....
Do you see what i mean ?