Maybe try something like
select * from temptable t
where userid in (
select userid from temptable
where status = 'ACTIVE'
Group by userid
having count(*)>1)