Having some trouble figuring out the logic behind this. See Two Queries below:
Request 1:
SELECT cId, crId, COUNT(EventType) FROM Data WHERE EventType='0' OR EventType='0p' OR EventType='n' OR EventType = 'np' GROUP BY crId;
Request 2:
SELECT cId, crId, COUNT(EventType) AS Clicks FROM Data WHERE EventType='c' GROUP BY crId;
It was just interesting if there was a way to make the column that I get at the end of query 2 appear in query 1. Since the where statements are different, theyβre not quite sure where to go, and any subquery that ve wrote just didn't work.
Thank you in advance
source share