It would be appreciated explaining the internal functionality of SUM function in Oracle, when encountering null values: The result of
select sum(null)
Arithmetic aggregate functions ignore nulls.
SUM()
AVG()