This is driving me nuts. I’m checking 3 conditions in my sql query. If any of them match, I want to grab the result campaign_id:
SELECT `campaign_id` FROM `tracking`
WHERE `user` = 'username@domain.net' AND `attempts` > '5'
AND `clicked` > '0' AND `shared` > '0'
From what I can tell, the way it works now is it has to match ALL the conditions. How can I make it show the results of campaign_id if it matches ANY of the conditions?
Change the
ANDtoOR. But only for the parts that you want OR’d, using parenthesesBasically, you want the specified user
ANDany of these other filters that are grouped together using internalORs