Sorry for the late reply... out of office, but the following might work:
SELECT A.NAME as name,
a.date as date,
count(*) as temp,
'' as totcount
FROM MYTABLE a
GROUP BY NAME,DATE
union all
SELECT A.NAME as name,
'' as date,
'' as temp,
count(*) as totcount
FROM MYTABLE a
GROUP BY NAME...