select count(emp1id) from tbl_emp2 group by emp1id
select emp1id, count(emp1id) from tbl_emp2 groupy by emp1id having count(*) > 2
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)