Hi,
I am learning mysql join queries. To pratice, I decided to make tables for a website like stackoverflow. I made three tables basically.
Question_Thread
thread_id
title
username
datetime
Question_Reply
reply_id
thread_id
text
Question_Text_Comment
comment_id
reply_id
comment
How do I query all the replies and comments of each reply? I can't find a relationship here. It is not many-to-many, one-to-many, or one-to-one. It looks like one-to-many because one reply have many comments. The problem is that question detail page have many replies.
please advise me...