SELECT user,
SUM(actual) as actual
FROM `table`
Where Project = "ProjA"
GROUP BY user
WITH ROLLUP
WITH ROLLUP
will give you a total row with user value of NULL.
if you want 'Total' returned instead of NULL you can use this
SELECT if(User is NULL,'Total',User) as User,
SUM(Actual) as Actual
FROM `table`
Where Project = "ProjA"
GROUP BY user
WITH ROLLUP
WITH ROLLUP
is pretty sweet in that it provides summary lines for all your GROUP BY so that if you wanted to drop the WHERE Project = "ProjA"
and do summaries for each project and all projects you can do something like below.
SELECT IF(Project IS NULL,'All Projects',Project) as Project,
IF(User IS NULL,'Total',User) as User,
SUM(Actual) as Actual
FROM `table`
GROUP BY Project,User
WITH ROLLUP
updated
If you just want the total of ProjA you can do
SELECT 'Total' as User,SUM(Actual) as Actual
FROM `table`
WHERE Project = "ProjA"
or if you want to just select the total row from the ROLLUP you can do this (not sure why you want to but here it is)
SELECT User,Actual FROM
(SELECT if(User is NULL,'Total',User) as User,
SUM(Actual) as Actual
FROM `table`
Where Project = 'ProjA'
GROUP BY User
WITH ROLLUP
)T
WHERE User = 'Total'