I need to get the username associated with a post. There are multiple tables involved.
Table user_messages
================
message_id
user_id
message
response_message_id
Table users
============
user_id
user_nickname
Example Data:
message_id | user_nickname | message | response_message_id |
| 1 | bob | I'm bored | NULL |
| 2 | bob | great plains is awful | NULL |
| 3 | susan | someone is hogging the network | NULL |
| 4 | susan | IT is slacking off again! | 2 |
Let's take message_id #4 and let's display it as:
Susan (response to Bob) - "IT is slacking off again!"
Notice the response_message_id column is a reference to message_id # 2 which belongs to Bob.
Table user_messages
================
message_id
user_id
message
response_message_id
Table users
============
user_id
user_nickname
Example Data:
message_id | user_nickname | message | response_message_id |
| 1 | bob | I'm bored | NULL |
| 2 | bob | great plains is awful | NULL |
| 3 | susan | someone is hogging the network | NULL |
| 4 | susan | IT is slacking off again! | 2 |
Let's take message_id #4 and let's display it as:
Susan (response to Bob) - "IT is slacking off again!"
Notice the response_message_id column is a reference to message_id # 2 which belongs to Bob.
