J
Jason
We would like to allow user to select the items by using a combo box.
Someone has suggested us to use the following query for the data source:
SELECT DISTINCT ProductCategoryKey AS CategoryKey, ProductCategoryName AS
Category
FROM ProductCategory
UNION
SELECT - 1, 'All Categories'
However, I would like to know why we are able to select all items when the
CategoryKey = -1 ? If this query is not correct, what query should I use ?
Thank you for your advice.
Someone has suggested us to use the following query for the data source:
SELECT DISTINCT ProductCategoryKey AS CategoryKey, ProductCategoryName AS
Category
FROM ProductCategory
UNION
SELECT - 1, 'All Categories'
However, I would like to know why we are able to select all items when the
CategoryKey = -1 ? If this query is not correct, what query should I use ?
Thank you for your advice.