Skip to content
Advertisement

How to join the same table twice?

I am stuck on creating a SQL query. I have the following two tables:

sender and receiver are foreign keys with table member and column memberid. I want to display list of messages with name and id of sender and receiver.

How can I establish proper joins here?

Advertisement

Answer

You can try something like

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