3.j. select gyumolcs, count(distinct nev) from szeret group by gyumolcs 3.k. select gyumolcs, count(distinct nev) from szeret group by gyumolcs order by count(distinct nev) select gyumolcs, count(distinct nev) nevek_szama from szeret group by gyumolcs order by nevek_szama 6. select 'Béla' NEV from DUAL 7.a. create synonym ir_szam for scsi.ir_sza 7.j. select telepules, length(telepules) from ir_szam where length(telepules) = ( select max(length(telepules)) from ir_szam ) select telepules, length(telepules) from ir_szam, ( select max(length(telepules)) mhossz from ir_szam ) max where length(telepules) = max.mhossz / 7.k. select min(irszam) minimum, max(irszam) maximum, round(avg(irszam)) atlag, round(stddev(irszam)) szoras from ir_szam 7.l. select abs(oa.atlag - ha.atlag) kulonbseg, oa.atlag orszagos, ha.atlag heves from ( select avg(irszam) atlag from ir_szam ) oa, ( select avg(irszam) atlag from ir_szam where megye='Heves' ) ha 7.m. select telepules, irszam from ir_szam where megye='Pest' order by telepules, irszam desc 7.n. select megye, count(distinct telepules) telepszam from ir_szam where megye is not null group by megye order by telepszam desc