I know we cannot use alias in select clause with group by.
Reference posts:
Group by alias (Oracle)
SQL - using alias in Group By
Even my practical example prove it.
But I don't understand why it is mentioned in "ORACLE DOCUMENTS" that we can use alias with GROUP BY,HAVING
https://docs.oracle.com/cd/E17952_01/refman-5.0-en/problems-with-alias.html