I posted this message in another forum, but I always cannot get it right.
I have a master item table that give me the details for each product. For ex:
Tbl1.ItemNb, Tbl1.Color, etc,,
I have a table that gives me the list of all components(items) for a specific product(item):
Tbl2.Item1, Tbl2.Component1
Tbl2.Item1, Tbl2.Component2
Tbl2.Item1, Tbl2.Component3
Etc…
Since I need to have the detail for let’s say Tbl2.Component1, I need to link Tbl2.Component1 to Tbl1.ItemNb.
Is it possible to create a SQL query that will select Tbl1.ItemNb with the list of all component listed in Tbl2, and for each component from Tbl2, the detail for each component that I can retrieve from the Tbl1.
The result of the query should return something like:
Item1,Component1, color
Item1, component2,color
etc..
Hope the explanation is clear.
I have a master item table that give me the details for each product. For ex:
Tbl1.ItemNb, Tbl1.Color, etc,,
I have a table that gives me the list of all components(items) for a specific product(item):
Tbl2.Item1, Tbl2.Component1
Tbl2.Item1, Tbl2.Component2
Tbl2.Item1, Tbl2.Component3
Etc…
Since I need to have the detail for let’s say Tbl2.Component1, I need to link Tbl2.Component1 to Tbl1.ItemNb.
Is it possible to create a SQL query that will select Tbl1.ItemNb with the list of all component listed in Tbl2, and for each component from Tbl2, the detail for each component that I can retrieve from the Tbl1.
The result of the query should return something like:
Item1,Component1, color
Item1, component2,color
etc..
Hope the explanation is clear.