Hey guys,
I need help formulating this SQL Query…
I have 2 Tables:
- Table 1 "tb_Users" with Attributes:
- idUser
- NameUser
- Table 2 "tb_comment" with Attributes
- idComment
- idUser (FK)
- commentText
I want to print the following output:
- User 1
- List of all Comments of User 1
- User 2
- List of all Comments of User 2
- ...
- User n
- List of all Comments of User n
What is the most elegant way to do this?
THX
Andreas