简体   繁体   中英

(Oracle Apex ver. 12 c) How to create an LOV from one table that displays another table as results

I have to create a list of values, three separate symptoms, that would return likely illnesses from another table that has related symptoms. Any idea how to go about this?

It sounds like what you are looking for is simply a report (as well as your 2 LOV items), with a query like:

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
             )

This could in fact be a cascading LOV instead of a report, if that's what you need, with the symtom LOVs as its parents.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM