SteveSensei
08-24-2007, 06:28 PM
I'm running a SQL query on an ASP search page as follows:
"Select * from product WHERE category = '1127200642358' AND subcategory = '121200613846' AND SKU LIKE '%123%' or SKU like '%124%'"
I get 4 products back, however:
- The first 2 products have the correct category, subcategory and SKU
- The second 2 products have the correct category, but the subcategory is 1127200642532 on one of them and 1127200642437 on the other one. Nothing close to the requested subcategory in the query.
Any ideas on why these last 2 products are showing up even though they don't match the search query?
"Select * from product WHERE category = '1127200642358' AND subcategory = '121200613846' AND SKU LIKE '%123%' or SKU like '%124%'"
I get 4 products back, however:
- The first 2 products have the correct category, subcategory and SKU
- The second 2 products have the correct category, but the subcategory is 1127200642532 on one of them and 1127200642437 on the other one. Nothing close to the requested subcategory in the query.
Any ideas on why these last 2 products are showing up even though they don't match the search query?