hi
i usually follow this procedure for this kind of things:
first create a view out of job_done, that contains emp_id and number of jobs that have done:
Code:
CREATE VIEW vwNumOfJobs
SELECT COUNT(*) as num_job_done, emp_id
GROUP BY emp_id
and u should create another view like that for failed table.
now. you can join table "employee" with that two view.