I need to use max function within case when query for my report, but I am receiving an error
ORA-01427 - single row subquery returns more than one row