I have a requirement to have a number of sub-topics per main Topic. And every sub-topic needs to be able to have n number of comments.
I need to have database tables to represent this structure and then query for it to get the list of sub-topics, and for every subtopic get all the comments that belong to it. I also have to have a way to know when I reached the end of the comments for every subitopic.
Could someone please advise on best design/query for this?
I use MySQL.
Thank you very much! - Alex