Hi,
I have a simple SELECT query that returns a set of ProductCode based on the PalletNumber I enter. 98% of time the ProductCode are all the same, which is expected. Sometimes (2% of time), it returns the expected ProductCode and other Product. I like to come up a query to check the result if it has more than one Productcode in it. Is there a function I could use for this problem?
I have a simple SELECT query that returns a set of ProductCode based on the PalletNumber I enter. 98% of time the ProductCode are all the same, which is expected. Sometimes (2% of time), it returns the expected ProductCode and other Product. I like to come up a query to check the result if it has more than one Productcode in it. Is there a function I could use for this problem?