aizam
Starting Member
1 Post |
Posted - 2012-07-31 : 23:36:34
|
i have table like this[ProjectID], [TaskName] ,[%Status], [ID],[TaskB4]* taskb4 is refer to the above taskand the data is look like this1, Pre Implementation, 20, 1, NULL2, Implementation, 0, 1, NULL3, Indentify Requirement, 80, 1, 14, Project Proposal, 50, 1, 15, Server Requirement, 100, 1, 36, Software Requirement, 80, 1, 37, Stakeholder Requirement, 60, 1, 3so the task table will continue to multiple level (depend what user enter)the problem is..i want to calculate average to update the top level when end user update the last level of the task...for above example..when user update one of task(5 or 6 or 7)it will calculate average and update the [%Status] on task ID 3and this value will combine with [%Status] on task ID 4 to calcluate average for [%Status] on task ID 1. this loop will continue until the top level where taskb4=NULL..that all. thanks in advance, |
|