select oh.ord_num from baylis.ORD_HDR oh, baylis.IMAGES im where oh.cnf_datc is null and im.image_ref = oh.ord_num