I am trying to get the number of opens for each day (Example: April 15, April 16, April 17 and so on....)
Date | Opens |
---|---|
Apr 15 | 17500 |
Apr 16 | 5000 |
Apr 17 | 200 |
I am using the below query, but not getting required results.
select distinct count (o.SubscriberKey), o.EventDate as date
from [_Open] o
inner join [Emails_Sent_on_April15] s
on o.JOBID= s.JOBID and s.BATCHID=o.BATCHID
where o.isunique = 1
group by cast (o.EventDate as date )
Could anyone help me know, how to modify the above query to get the results like in the table.
The problem is o.EventDate in select statement also has time
o.EventDate
as a date in the select statement, just like you do in the group by statement?cast(o.EventDate as date) AS DATE
? Maybe give it a go in Automation Studio?