diff --git a/lekerdezesek/lekerdezesek.sql b/lekerdezesek/lekerdezesek.sql index 9badba0..2e82f3d 100644 --- a/lekerdezesek/lekerdezesek.sql +++ b/lekerdezesek/lekerdezesek.sql @@ -39,5 +39,5 @@ SELECT sum(rendelesek.mennyiseg) AS `mennyiseg` FROM rendelesek SELECT round(sum(rendelesek.termekAr)) AS `brutto`, - round(sum(rendelesek.termekAr * (1 - (1 / (1 / rendelesek.afakulcs))))) AS `afa` - FROM rendelesek; \ No newline at end of file + round(sum(rendelesek.termekAr * (1 - (1 / (1 + rendelesek.afakulcs))))) AS `afa` + FROM rendelesek;