我必须创建一个值列表,三个单独的症状,这些症状会从另一个具有相关症状的表中返回可能的疾病。知道如何去做吗?
答案 0 :(得分:0)
听起来你正在寻找的只是一个报告(以及你的2个LOV项目),其查询如下:
select * from illnesses i
where exists (select null
from illness_symptoms s1
where s1.illness_id = i.illness_id
and s1.symptom = :P123_SYMPTOM1
)
and exists (select null
from illness_symptoms s2
where s2.illness_id = i.illness_id
and s2.symptom = :P123_SYMPTOM2
)
这实际上可能是级联LOV而不是报告,如果这是你需要的,symtom LOV作为其父母。