bmiddleton
12-17-2003, 08:07 PM
I would like to use a table as a foriegn key for two other tables. I would like to query the first table and use those results in querys for the other tables. This probably isn't sounding too clear. Let me see if I can give an example.
I have a table that has a list of product releases. This table has id#, release name, and whether the release is visible or not (visible for customers).
My second table would have names of categories of a product. This would include id#, name of category, release id# (fk)
My third table would have names of products. This would include id#, product name, category id (fk), release id (fk), image file name.
So I want to query the first table and find out which releases are visible, take those results (id #s) and query the other tables to show/list products or categories tied to that release. The problem I am having is when more than one release is visible. I don't know how to take those multiple results and put them in the next query. Any thoughts??
Thanks!
Brian
I have a table that has a list of product releases. This table has id#, release name, and whether the release is visible or not (visible for customers).
My second table would have names of categories of a product. This would include id#, name of category, release id# (fk)
My third table would have names of products. This would include id#, product name, category id (fk), release id (fk), image file name.
So I want to query the first table and find out which releases are visible, take those results (id #s) and query the other tables to show/list products or categories tied to that release. The problem I am having is when more than one release is visible. I don't know how to take those multiple results and put them in the next query. Any thoughts??
Thanks!
Brian
