I have 2 tables, staff and departments.
department - id, department
Employees - id, department_id, name and heap are more here.
therefore employee.department_id is a foreign key for department.id
I need to show the employees of the table, but instead of department_id (showing department IDs) I need to show the actual departments, so instead of department_id I need to place department.department
Is it possible? Here is a picture of what I want. http://oi44.tinypic.com/xgdyiq.jpg
PS: a friend told me to use join, but I'm not sure ... you can see my request in the picture.
source share