I’m trying to use JOIN but it seems I am only getting half of the result. Below are the tables and required output.

I’m not getting any error.
When I used JOIN it only shows the approver1. So What I did is:
SELECT tb1.*, tb2.name AS a1, tb3.name AS a2
FROM table1 tb1
LEFT JOIN approver tb2
ON tb1.approve1 = tb2.id
LEFT JOIN approver tb3
ON tb1.approver2 = tb2.id
Any help or clue would be greatly appreciated.
1 Answer