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 estimated chargeable cost of a stage taking into the different charge rates applicable for different tasks (assuming that all the work for the stage has been assigned).
Screenshot of DB layout:

http://tinypic.com/view.php?pic=2dtvg3l&s=5
(Screenshot) - Table data from: CHARGE_GRADE; TASK_TYPE; TASK; CHARGE_GRADE; ASSIGNMENT; EMPLOYEE; (if it helps).
