Hi everyone. I had a question regarding a small task i've been given. Below I have pasted the question and a screenshot of the database layout. Now I just don't understand what exactly i'm ment to be creating, 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:
Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting
Not a clue :/
Any hints or tips to create the SQL output needed would be great help, thanks.
---------- Post added at 01:36 PM ---------- Previous post was at 01:35 PM ----------
I believe its 'estimated hours * chargeable rate' but still not entirely sure, any help really.
2 replies to this topic
#1
Posted 19 November 2011 - 01:36 PM
|
|
|
#2
Posted 19 November 2011 - 02:18 PM
I would start by looking at sample data. What tables have to have the data for you to determine the charge of a stage? I'm guessing it involves STAGE, TASK, TASK_TYPE, and CHARGE_GRADE, but I can see it involving others, as well.
#3
Posted 19 November 2011 - 02:57 PM
I'm guessing it involves STAGE, TASK, TASK_TYPE, and CHARGE_GRADE, but I can see it involving others, as well.
I have the table information (as shown below). Just the sql to connect and SUM them up I guess is where i'm confused I think.
Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting
I have the table information (as shown below). Just the sql to connect and SUM them up I guess is where i'm confused I think.
Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









