Stichwort "having":

select a, b, count(*)
from myfile
group by a, b
having count(*) = 1