SELECT          hdr.log_hdr_no,
                hdr.job_no,
                f.file_no,
                f.file_name
FROM            dhdb.fi_file f
join            dhdb.fi_file_link_vw flink
ON              f.file_no = flink.file_no
join            dhdb.gl_log_hdr_vw hdr
ON              flink.gl_log_hdr_no = hdr.log_hdr_no
left outer join dhdb.dd_drillhole_vw dh
ON              hdr.drillhole_no = dh.drillhole_no
left outer join dhdb.dd_drillhole_summary_vw summ
ON              hdr.drillhole_no = summ.drillhole_no
WHERE           flink.file_data_type_code = 'GL'
AND             dh.drillhole_no IN {DRILLHOLE_NO}
ORDER BY        hdr.job_no