Fórum order by em campo calculado #50632
22/04/2005
0
Por que da erro?
select clientes.NOME ,
(select sum(notas.valor_total) from notas where notas.cliente_id = clientes.cliente_id) valor
from clientes order by notas.valor_total
steve narancic
select clientes.NOME ,
(select sum(notas.valor_total) from notas where notas.cliente_id = clientes.cliente_id) valor
from clientes order by notas.valor_total
steve narancic
Steve_narancic
Curtir tópico
+ 0
Responder
Posts
22/04/2005
Fsflorencio
Ordene pela posição do campo que funciona
order by 2
order by 2
Responder
Gostei + 0
22/04/2005
Steve_narancic
valeu, funcionou perfeitamente
Responder
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)