I have a query that I use the works, but now I need to modify it so that it excludes rows if they have a certain data in a field.
Here’s the current code:
SELECT oc_ieentry,oc_sysitem,oc_item,oc_itemdesc,oc_purchasedate,oc_url
FROM catalog
WHERE oc_purchasedate >= date_sub(current_date, interval 21 day)
ORDER BY oc_item ASC
What I need to do is add a statement in there that if oc_ieentry LIKE 1, then those rows should not be shown.
Try this: