i have some problem with left join JPQL
Posted
by Dora
on Stack Overflow
See other posts from Stack Overflow
or by Dora
Published on 2010-04-13T06:21:41Z
Indexed on
2010/04/13
6:22 UTC
Read the original article
Hit count: 320
java
there is something wrong with ths way i use left join, and i dont understand what am i doing wrong.
can you see it?
select distinct r.globalRuleId,
r.ruleId,
sv.validFrom,
pm.moduleId,
nvl(min(rai.failedOnRegistration),0)
from TRules r,
TSlaVersions sv,
TModuleFormulas mv,
TPendingModule pm,
left join TRulesAdditionalInfo rai on r.ruleId = rai.ruleId
where r.slaVersionId = sv.slaVersionId
and r.formulaId = mv.pk.formulaId
and mv.pk.moduleId = pm.moduleId
group by r.globalRuleId, r.ruleId,
sv.validFrom,
pm.moduleId
order by pm.moduleId
© Stack Overflow or respective owner