I am creating a bill of materials program.
There are two main tables named Products
and Sub_Products
.
In the Products
table, the fields are (Product_Name
, Code
).
In the Sub_Products
table, the fields are (Code
, Sub_Name
).
The tables are linked with code, i.e.: one product
is made up of many sub_product
s, each sub_product
is a product
as well, making it have many sub_product
s.
I have created a query that reads a product
and gets its sub_product
s. I need a query to compare Sub_Name
with Product_Name
and then check more sub_product
s,
continuing until no more sub_product
s are found.
Any ideas?