Skip to main content

New answers tagged

0 votes

Selecting a count of distinct logins per day

select activitytime,sum(case when rk = 1 then 1 else 0 end) unique_users_count from ( select activitytime,[user_id],rank() over(partition by [user_id] order by activitytime) rk from @Activity ) k ...
vivek raj's user avatar

Top 50 recent answers are included