diff --git a/lekerdezesek/lekerdezesek.sql b/lekerdezesek/lekerdezesek.sql index 1b88e49..52d3135 100644 --- a/lekerdezesek/lekerdezesek.sql +++ b/lekerdezesek/lekerdezesek.sql @@ -29,7 +29,7 @@ INSERT INTO autok (rendszam, szin, kategoriaId, nev, evjarat, ar) VALUES SELECT autok.nev, count(autok.id) AS `mennyiseg` FROM berlesek INNER JOIN autok WHERE berlesek.autoId = autok.id GROUP BY autok.id - ORDER BY count(berlesek.id) DESC + ORDER BY count(autok.id) DESC LIMIT 5; ***