select * from t_device where v_id='361' and mac in (select mac from t_device where v_id='361' group by mac having count(mac)>1);