Reputation: 9027
I have the following tables:
Person:
Person_Id,
Name
Dog:
Dog_Id,
Person_Id,
Name
I want to show all the dogs below Person name in SSRS report. But When I add parent group, it adds to the left, so I can display dogs only to the right. (I use table control)
So: I want this:
Alex
DogName1
DogName2
Kristy
DogName3
DogName4
But the only way I can get in SSRS is:
Alex DogName1
DogName2
Krisy DogName3
DogName4
What kind of grouping should I use in order to make this work?
Upvotes: 0
Views: 1100
Reputation:
EDIT: Instead of using two datasets, use one dataset with a query like the following:
select p.name person_name,
d.name dog_name
from person p
inner join dog d on p.person_id = d.person_id
(Change inner join
to left outer join
if you want to include people who don't own dogs).
Upvotes: 1