As shown In the attached picture, I want enter to an SQL into the Case Function which will return the value of the field Elevators WHERE Elevators > 0 AND Priority = 0 ORDERED BY utilization. That value will be used to send the patient to an appropriate elevator door.
Thanks,
Tee