Neural IT Interview Question

Fetching data from database using group by command and sum() function