Oracle Solution for Error ora-32621

Solution for Oracle Error ORA-32621

ORA-32621: illegal aggregation in UNTIL iteration condition

What triggered the Error:

An aggregate function was used in UNTIL condition.

What should we do to fix it:

Check the SQL statement and rewrite if necessary.