on 08-22-2014 6:47 PM
Hello,
Using CR v14.
How do I link multiple fields to the same table?
table A:
field 1 links to table B
field 2 links to table B
field 3 links to table B
My attempt with the 'link tab' under the 'Database Expert' allows me to set the links but the report only shows records where field 1,2,3 are all the same.
Thanks.
Hi Eric,
Check the Link options -> inner join
If you get the duplicate data right click on the field -> format field-> common tab-> check suppress duplicates.
possible, link multiple fields to the same table but table not having primary key thats why data comes duplicates.
Reference link: Create a one to many relationship using SQL Server - Stack Overflow
Regards,
DJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Eric,
Moved your post to the Report Design forum.
What you are doing is correct but not enough info on how the tables relate to each other. When dragging field to field in the Linking Wizard the default is a Left Outer Join so you will get multiple rows with the same numbers.
If the linking is correct try this:
Check on the Suppress if Duplicate and see if that's what you need. But I suspect you need Links or a Command Object to get the data you really want.
Need more info and details about the tables you are trying to link.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.