EX: I have 3 tables, Products, Manufacturers and ProductType.
In the tblProducts containing both ManuID and ProdTypeID that links to the other two tables.
When I call to display ProdTypeNames that associate with a particular Manufacture, the tblProducts might have the products that are the same Manufacture and ProdType, and I don't want to show the ProdTypeName more than once.
by using sql2000,
sql = "SELECT DISTINCT tblProductType.ProdTypeName, tblProducts.ProductID, tblProducts.ManuID FROM tblProducts, tblProductType WHERE tblProducts.ProdTypeID = tblProductType.ProdTypeID and tblProducts.ManuID = '" & request.querystring("ManuID") & "'"
Could you tell me why the DISTINCT tblProductType.ProdTypeName is not working?
In the tblProducts containing both ManuID and ProdTypeID that links to the other two tables.
When I call to display ProdTypeNames that associate with a particular Manufacture, the tblProducts might have the products that are the same Manufacture and ProdType, and I don't want to show the ProdTypeName more than once.
by using sql2000,
sql = "SELECT DISTINCT tblProductType.ProdTypeName, tblProducts.ProductID, tblProducts.ManuID FROM tblProducts, tblProductType WHERE tblProducts.ProdTypeID = tblProductType.ProdTypeID and tblProducts.ManuID = '" & request.querystring("ManuID") & "'"
Could you tell me why the DISTINCT tblProductType.ProdTypeName is not working?