Select * from Users U Inner Join Transaction T On U.Id=T.UserId having(Count (C.Status =1 ) >2)
Select U.id from Users U Inner Join Transaction T On U.Id = T.UserId where T.status = 3 group by U.Id, T.status having Count(T.status ) > 2
having
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)