19. feladat kesz
This commit is contained in:
parent
c1bd4a51fc
commit
eb4ac8d072
|
@ -20,9 +20,18 @@ SELECT autok.nev, autok.szin FROM autok
|
|||
***
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user