select sum(osszeg) from vasarlas, vasarlo where vasarlokod=vasarlo.kod and csoport!='T';