Question : SQL Query

I have a table, tblsuggestedproducts, that has productid, suggestedproductid.  Both of these fields relate to the primary key, productid, in tblproducts

tblsuggestedproducts looks like this
productid      suggestedproductid
1                   3
1                   4
1                   7
2                   2
2                    3

I want to return a query that gives me the related data in tblproducts for both the tblsuggestedproducts.productid and the tblsuggestedproducts.suggestedproductid....any help would be appreciated.

Answer : SQL Query

Delete the '#' characters from the query before execute it:

select prod.product_name,
          prod.product_description,
          prod2.product_name,
          prod2.product_description
from tblproducts prod inner join tblsuggestedproducts sugprod on (prod.product_id = sugprod.product_id)
                       inner join tblproducts prod2 on (prod2.product_id = sugprod.suggestedproduct_id)
Random Solutions  
 
programming4us programming4us