Hello everyone,
I have the following statement:
DELETE FROM emp_record
WHERE EXISTS ((SELECT 'X'
FROM emp_record emp, employee_type empt
WHERE emp.emp_cat in ('Recep', 'Secr')
AND empt.emp_stat in ('Mech', 'Elect')
AND empt.term_stat = 'Active'
AND emp.emp_id = empt.emp_num)
UNION
(SELECT 'X'
FROM emp_record emp, employee_type empt
WHERE emp.emp_cat in ('Mech', 'Elect')
AND empt.emp_stat in ('Recep', 'Secr')
AND empt.term_stat = 'Active'
AND emp.emp_id = empt.emp_num))
When I run this, I get a timeout error message - "distributed waiting for lock". Can you please assist?
Thanks in advance,
sql99
I have the following statement:
DELETE FROM emp_record
WHERE EXISTS ((SELECT 'X'
FROM emp_record emp, employee_type empt
WHERE emp.emp_cat in ('Recep', 'Secr')
AND empt.emp_stat in ('Mech', 'Elect')
AND empt.term_stat = 'Active'
AND emp.emp_id = empt.emp_num)
UNION
(SELECT 'X'
FROM emp_record emp, employee_type empt
WHERE emp.emp_cat in ('Mech', 'Elect')
AND empt.emp_stat in ('Recep', 'Secr')
AND empt.term_stat = 'Active'
AND emp.emp_id = empt.emp_num))
When I run this, I get a timeout error message - "distributed waiting for lock". Can you please assist?
Thanks in advance,
sql99