I'm looking for the best approach to solve this kind of problem while reporting with SSRS
Most of my data in in MainTable, but I also have two other tables which may have data, LocationList and ExtraDetails. In SQL these are connected via Id and may have zero to many records.
I have no problem with MainTable data, but sometimes I have extra data in LocationList which needs to be listed under the row for MainTable. The same is true for ExtraDetails data.
I cannot figure out how to connect to the extra tables and show that data
I'm going for a report something like this:
Id1 Name1 Address1
Id2 Name2 Address2
LocationList-1 for Id2
ExtraDetails-1 for Id2
ExtraDetails-2 for Id2
Id3 Name3 Address3
ExtraDetails-1 for Id3
Id4 Name4 Address4
As a C# coder, what I way to do is get a count of LocationList for ID, and if count > 1 then show each LocationList entry. But I suspect this is the wrong approach for SSRS reports.