our task is to replace GROUP BY and HAVING clauses with WHERE, if possible. SQL-Code is as follows:
SELECT Sparte , Region , SUM( Umsatz )
FROM Fakten
GROUP BY Sparte , Region
HAVING SUM( Umsatz ) >= 50000
Is it possible to change the last two lines using WHERE? If not, why? Thank you in anticipation.
If you really need to use
WHERE
instead ofHAVING