CALCULATE TOTAL NUMBER OF ESTIMATED HOURS I had a question regarding a small task I've been assigned. Below I have pasted the question and a screenshot of the database layout. Now I just don't understand what exactly I'm meant to create, a user defined function maybe? But how?

Question: Calculate and return the total number of estimated hours involved in a given stage at the date of the estimate (i.e. before any further changes to estimated hours were made).

(Screenshot) - Table data from: CHARGE_GRADE, TASK_TYPE, TASK, CHARGE_GRADE, ASSIGNMENT, EMPLOYEE.
When I look at the question, it is not important what you create to achieve the result: calculate and return the total number of estimated hours involved in a given stage at the date of the estimate.

I would advise though to just create a query to return the result.