S
sean
Hi,
I am trying to exclude the duplicate rows from two tables. I am trying to
make the query so that the "options" table which contains all of the values
is compared against the "product_options" table which may contain only some
of the rows that the "options" table has. I would like to exclude all of the
rows which are contained in both tables. I have tried many different ways to
do this and I know that I am close, could someone help me out with some code
please!
Thanks in advance for your answer
Sean
PARAMETERS pProductID Long;
SELECT DISTINCT ([options].[OptionValue]), [product_options].[ProductID]
FROM options, product_options
WHERE [product_options].[ProductID]=pProductID AND
[options].[OptionValue]<>[product_options].[OptionValue];
I am trying to exclude the duplicate rows from two tables. I am trying to
make the query so that the "options" table which contains all of the values
is compared against the "product_options" table which may contain only some
of the rows that the "options" table has. I would like to exclude all of the
rows which are contained in both tables. I have tried many different ways to
do this and I know that I am close, could someone help me out with some code
please!
Thanks in advance for your answer
Sean
PARAMETERS pProductID Long;
SELECT DISTINCT ([options].[OptionValue]), [product_options].[ProductID]
FROM options, product_options
WHERE [product_options].[ProductID]=pProductID AND
[options].[OptionValue]<>[product_options].[OptionValue];