19. feladat kesz

This commit is contained in:
BB 2023-10-10 09:23:59 +02:00
parent c1bd4a51fc
commit eb4ac8d072

View File

@ -20,9 +20,18 @@ SELECT autok.nev, autok.szin FROM autok
*** ***
18. feladat 18. feladat
INSERT INTO autok (rendszam, szin, kategoriaId, nev, evjarat, ar) VALUES
("OT44-01", "Fekete-piros", 3, "GMC andura Szupercsapat kiadás", 1983, 18000);
*** ***
19. feladat 19. feladat
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
LIMIT 5;
*** ***
20. feladat 20. feladat