I have these 2 tables:
ASSOCIATION_TABLE: [id, key, name, manager, office, bank, customer]
and
OFFICE_TABLE: [id, name, address, phone]
I am currently running this query to get a data set that I need:
SELECT `name`, `key`, `office`, `manager`, `id`
FROM `database`.`ASSOCIATION_TABLE`
WHERE `association`.`customer`=4;
How can I modify this query to display the NAME from the OFFICE_TABLE, rather than the ID? I think a table join is my solution, but I'm nut sure what kind, or how exactly to use it.
Thanks in advance.