I'd like to join two tables, producing a result where the IDs in the 2nd and 3rd columns of table2 are replaced by the corresponding name
values from table1:
table1: id - name --------- 1 - Sam 2 - Ben 3 - Nick table2: id name1 name2 upvote downvote
1 1(id of Ben) 3(id of Nick) 150 8
So my goal here is to join these tables and produce:
1 - Ben - Nick - 150 - 8
How can I achieve this?