I have a table T1 with the following columns
T1
----------
ID | Name
----------
1 Sender1
2 Receiver1
3 Receiver2
4 Sender2
Table T2
T1
---------------------
SenderID | ReceiverID
---------------------
1 2
1 3
4 2
I want to join the two tables in such a way that i want to get the sender and the corresponding receiver grouped. I want the names instead of the IDs. How can this be done in one SQL query
Ex:
Sender Receiver
Sender1 receiver1
receiver2
Sender2 receiver1