######
COMENTARIOS:
por Anónimo | 9/11/2006 10:51:19 PM
RE: ORA-00978
select c.name,sum(i.price * i.quantity) ,r.name
from s_customer c,s_ord o,s_item i,s_region r
where c.id = o.customer_id
and o.id = i.ord_id
and c.region_id = r.id
group by c.name,r.name
having sum(i.price * i.quantity) = (select max(sum(i.price * i.quantity))
from s_item i
where i.ord_id = o.id
and c.id = o.customer_id)