-- 548113
delete
FROM salary_liquidationdetails 
where liquidation_id in (select id from salary_liquidations where status = 0);

-- 60914
delete
FROM salary_liquidations
where status = 0;

-- 98976
delete
FROM salary_assignments
where status = 0;

-- 18717
delete
FROM salary_manualassignments
where status = 0;