I have a query
SELECT date, SUM(cimpression) AS cimp, SUM(cclick) AS cclick
FROM stdaily
WHERE date BETWEEN :start AND :end
AND (id = 21 AND id = 32 AND id = 12 AND id = 33)
GROUP BY date
ORDER BY date ASC;
This query needs to return only results where the id is equal to 21,32,12 and 33 but returning results not containing those specific ID’s , not sure what exactly is wrong? Any advise?
What I think you are looking for is:
This will return results, which have an id as any of those contained within the
inbrackets.