Forum Discussion
Relationships between three tables.....
Hi. I've got a complicated relationship between three columns that I don't know how to describe. Here's what they look like..
Tables
1. (IC) Item Card
2. (VC) Vendor Card
3. (VIC) Vendor Item Catalogue
| IC Item Number (unique) | IC Default Vendor Number | IC Lead Time 1 |
| VC Vendor Number (unique) | VC Lead Time 2 |
| VIC Vendor Number | VIC Item Number | VIC Lead Time 3 |
The VIC card can look like this:
| VIC Vendor Number | VIC Item Number | VIC Lead Time 3 |
| Vendor1 | Item1 | 1W |
| Vendor1 | Item2 | 2W |
| Vendor2 | Item1 | 3W |
| Vendor2 | Item2 | 4W |
There are no unique fields in the VIC card. It's a combination of the VIC Vendor and the VIC Item that is unique.
I'm looking to create this report:
| IC Item Number | IC Lead Time 1 | VC Lead Time 2 | VIC Lead Time 3 | IC Default Vendor Number |
| Item 1 | * | * | * | Vendor* |
| Item 2 | * | * | * | Vendor* |
I'm close....
But currently I'm getting multiple instances of the Item# because i've linked the:
IC -> VC - through Item No
IC -> VIC - through Vendor No
I really want to say, only return VIC rows if the Item AND the Vendor match what you see on the IC Item# and IC Vendor#
Any ideas?
1 Reply
- AnonymousNot applicable
Hi jasonwq ,
Can you share the data model? Your expected report and the screenshot look different. And the logic of your requirement is not quite clear.
Best Regards,
Jay