Optimizing query to find mutual friends in Facebook - Stack Overflow

Assuming a Facebook friend's table looks like this - userId | friendId , how would you write a SQL query to find the mutual friends between two ...

Lee mas