select nev, sum(nap*dij) from tura, hajo where hajoazon=regiszter group by nev;