Hi,
I have been struggling with this for days so I'm hoping someone can help...
I have 2 tables; products and customers. some products go to many customers and some to none so I've created one more table to link products with customers -- basically just a key and a pointer to each table - this table is called prod2cust.
Now I want to create an output table showing all products and the customers for each... I cannot do this
I create my associations and then create a flat pivot. If I simply put in the product name and customer name in the pivot, I get all customers for every product - wrong. Then I tried to denormalize the tables by using the RELATED command and added two new calculated columns on my prod2cust table (one with product name and one with customer name.)
Then when I add only fields from prod2cust into the pivot, it works, except of course, I dont see any of the products that have no customer...
can anyone help?
Steve
I have been struggling with this for days so I'm hoping someone can help...
I have 2 tables; products and customers. some products go to many customers and some to none so I've created one more table to link products with customers -- basically just a key and a pointer to each table - this table is called prod2cust.
Now I want to create an output table showing all products and the customers for each... I cannot do this
I create my associations and then create a flat pivot. If I simply put in the product name and customer name in the pivot, I get all customers for every product - wrong. Then I tried to denormalize the tables by using the RELATED command and added two new calculated columns on my prod2cust table (one with product name and one with customer name.)
Then when I add only fields from prod2cust into the pivot, it works, except of course, I dont see any of the products that have no customer...
can anyone help?
Steve