I need to join 2 tables, the 1st table will return 1 row for each query, but the 2nd table has 1 or more rows that I want to combine and give a value in the one result of the 1st table. For the below dataset, I want to return only 2 rows, with VideoName 1 and 2, then the personId that each video was sent to. So Video 1 was sent to person 3 and person 4 is the first row. Video 2 was sent only to person 4.
Table 1
VideoId Videoname
1 Video1
2 Video2
Table 2
SendId VideoId PersonId
1 1 4
2 1 3
3 2 4
Desired output
VideoName Sent to
Video1 4 and 3
Video2 4