[firebase-br] Res: QUERY que não executa no DBExpress
Otavio Ferdin Junior
junior em argon.com.br
Qua Abr 9 21:03:19 -03 2008
A query proposta dá o seguinte erro:
Invalid expression in the select list (not contained in either an aggregate
function or the GROUP BY clause).
Select P.Codigo, P.Nome, SUM (Pr.Estoque) as Total from
Produtos P,
ProdCores Pr
where
Pr.CodPro = P.Codigo and
P.Nome Like 'MOUSE OPTICO%
Order By P.Nome
> Select P.Codigo, P.Nome, (Select SUM (Pr.Estoque) as Total from ProdCores
> Pr where Pr.CodPro = P.Codigo) from Produtos P where P.Nome Like 'MOUSE
> OPTICO%' Order By P.Nome
Mais detalhes sobre a lista de discussão lista