From c1bd4a51fc93bbf450edb493ce504175d6473fae Mon Sep 17 00:00:00 2001 From: BB Date: Tue, 10 Oct 2023 09:20:07 +0200 Subject: [PATCH] 17. feladat kesz --- lekerdezesek/lekerdezesek.sql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lekerdezesek/lekerdezesek.sql b/lekerdezesek/lekerdezesek.sql index 749d416..2588857 100644 --- a/lekerdezesek/lekerdezesek.sql +++ b/lekerdezesek/lekerdezesek.sql @@ -5,9 +5,18 @@ *** 16. feladat +SELECT count(autok.id) as `sportautok-szama` + FROM autok + WHERE kategoriaId = 4; + *** 17. feladat +SELECT autok.nev, autok.szin FROM autok + INNER JOIN kategoriak + WHERE kategoriak.nev = "Limuzin" + ORDER BY autok.nev ASC; + *** 18. feladat