setembro 19, 2008 às 7:40 pm
#82769
Participante
select D.nom_dentista, SUM(val_pagamento) as "pagto",
from dentista D, Pagamento PG, consulta C
where C.num_dentista = D.num_dentista
and PG.num_consulta = C.num_consulta
and C.dat_consulta between '2008-01-01' and '2008-02-28'
group by D.num_dentista
having SUM(val_pagamento)> 2500
ORA-00936: expressão não encontrada