Hi all -
I have several SQL statements, and I want to combine them into one. Here they are.... If anyone can help, that would be amazing.
SELECT COUNT(DISTINCT session) AS Event3Count
FROM table_name
WHERE page LIKE 'page_name'
AND event LIKE 3;
SELECT COUNT(DISTINCT session) AS Event4Count
FROM table_name
WHERE page LIKE 'page_name'
AND event LIKE 4;
In essence, I'm trying to count each event, but non-duplicates. So I grab the count of distinct session IDs where the event is like X.
It would be great to do this in one command, having each event separated so I can return Event3Count, Event4Count, etc.
Thanks
-Matt