Above is my query … but the corresponding names for the observer_ID and staff_ID is in another table called staff. SO some how i need to join (o.observer_ID=s.staff_ID) AND ( o.staff_ID=s.staff_ID) to get the two names of the observer and the person being observed (o.staff_ID). Please help me with it. Thanks
SELECT DISTINCT o.Room, o.Date,o.Module_code,o.observer_ID,o.staff_ID,o.form_id
FROM mbm2_db.observation_details as o,mbm2_db.Staff as s
WHERE o.date = '2011-08-09' and o.Module_code = 'IS5103'
1 Answer