Image may be NSFW.
Clik here to view.hi everyone
i am facing a problem in creating a query,if anyone can help me,it will be reallu helpful
actually i am having a table consisting of two column as shown above
Column name:
1) PhaseName 2)Task Percent completed
Now what i need is table that consists of two column
1)Phase Name 2)Counting
with the following conditions
1)if phase A,B,C task percent complete is 0,then counting column should contain 0 for all phases,and if Phase A task percent complete is between 1 -99% and phase B,C taskpercent complete is 0%,then counting column should contain value '1' against phase name A,for rest of phases(B,C) Counting column should contain value '0',but as soon as
phase A Task percent complete becomes 100%,then counting column should contain value '0' against phase A,Cand should contain value '1' against Phase B as( project enters from phase A to Phase B), value of Taskpercentcomplete of Phase B is between (0 -99 %) ,but as soon as Taskpercent complete for Phase B becomes 100%(Project enters Phase C,counting column should contain value '0' against phase A,Band should contain value '1' against Phase C and so on
The problem which i am facing is when appliying condition for Phase B is that same condition get linked to Phase C as well because Phase C Task percent complete is also '0%'
If anyone has any idea plz let me know any help will be greatly appreciated
Thanks