Well I may have posted this earlier also, but unable to find the answer so far, so please help me on this one.
My database structure:
ATT (
Maybe like this. try it....
Select Emp.F_Name As A,
Proj.Project_Name As B,
Count(ATT.Act_ID) As C,
sum( IIF( ATT.Status IN ( 'Closed', 'OnHold' ), 0, 1 )) as D,
(Count(ATT.Act_ID) / sum( IIF( ATT.Status IN ( 'Closed', 'OnHold' ), 0, 1 ))) * 100 as E
From Employee_Table As Emp Inner Join
(Product_Table As Prod Inner Join
(ATT_Table As ATT Inner Join Project_Table As Proj On Proj.Project_ID=ATT.Project_ID)
On Prod.Product_ID=ATT.Product_ID)
On Emp.Emp_ID=ATT.Assigned_To_ID
Group By Emp.F_Name,Proj.Project_Name