The following query is VERY slow, anyone help optimize?
SELECT support_requests.d_submit, support_requests.req_user,
support_requests.priority, support_requests.proc_user,
files.file_no, client.clnt_code,
files.file_stat, groups.grp_no,
support_requests.report_id, support_requests.sup_req_id
FROM files, support_requests, client, OUTER groups
WHERE support_requests.req_type = 'H'
AND support_requests.d_complete IS NULL
AND support_requests.d_deleted IS NULL
AND support_requests.d_rejected IS NULL
AND client.clnt_id IN
(SELECT client.clnt_id
FROM client
WHERE client.parent_id =
(SELECT client.clnt_id
FROM client
WHERE client.clnt_code = 'ABC'
AND client.parent_id IS NULL))
AND files.file_key = support_requests.file_key
AND files.clnt_id = client.clnt_id
AND client.parent_id IS NOT NULL
AND files.grp_id = groups.grp_id
SELECT support_requests.d_submit, support_requests.req_user,
support_requests.priority, support_requests.proc_user,
files.file_no, client.clnt_code,
files.file_stat, groups.grp_no,
support_requests.report_id, support_requests.sup_req_id
FROM files, support_requests, client, OUTER groups
WHERE support_requests.req_type = 'H'
AND support_requests.d_complete IS NULL
AND support_requests.d_deleted IS NULL
AND support_requests.d_rejected IS NULL
AND client.clnt_id IN
(SELECT client.clnt_id
FROM client
WHERE client.parent_id =
(SELECT client.clnt_id
FROM client
WHERE client.clnt_code = 'ABC'
AND client.parent_id IS NULL))
AND files.file_key = support_requests.file_key
AND files.clnt_id = client.clnt_id
AND client.parent_id IS NOT NULL
AND files.grp_id = groups.grp_id