Hola.
Utiliza subconsultas, algo como :
Código:
select distinct fecha,
(select sum(Importe) from Historico H2 where H1.fecha = H2.fecha and H2.categoria = 1) as consultas,
(select sum(Importe) from Historico H2 where H1.fecha = H2.fecha and H2.categoria = 2) as cirugia,
(select sum(Importe) from Historico H2 where H1.fecha = H2.fecha and H2.categoria = 3) as hospitalizacion
from Historico H1
Saludos.