Skip to content
Advertisement

Can’t find a solution to a problem relating three tables and join operation

So, I am not able to solve the following problem. Three tables are given: tables

I need to write a code using join so that all pairs friend pairs are listed with their full names. I only know that there may be a need for two joins one of them being self join. I tried to join a persons table with friends table, but the result in one column was name and the other was and id, I have no idea how to make two consecutive joins so that each name has a corresponding friends’ name. Here are the table information:

Advertisement

Answer

Are you just looking for two joins?

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement