select a.nif,a.empresa from alumnosmodulo a where (select count(*) from alumnosmodulo where nif=a.nif)>1 order by a.nif,a.empresa