Oracle Error QSM-02143: SUM(expr) without COUNT(expr)

Oracle Error Message

QSM-02143: SUM(expr) without COUNT(expr)

Reason for the Error

SUM(expr) occurs in the select list without a corresponding COUNT(expr).

Solution

Add COUNT(expr) to the select list.