|
Mostrando mensaje 40
|
|
< Anterior | Siguiente >
|
|
|
Leonardo
No podés poner cláusulas SUM en el where, esas claúsulas son las que se
refiere como aggregate
-----Mensaje original-----
De: Leonardo Macri [mailto:leo@metano-optics.com]
Enviado el: Lunes, 04 de Abril de 2005 12:00 p.m.
Para: sql2000@eListas.net
Asunto: [sql2000] select
listeros,
tengo el siguiente select
select * from vtrmvc where
SUM(VTRMVC_IMPNAC) <> 0 AND SUM(VTRMVC_IMPNAC) <= 2.0 AND
SUM(VTRMVC_IMPNAC) >= -2.0
que me tira el siguiente error
Server: Msg 147, Level 15, State 1, Line 2
An aggregate may not appear in the WHERE clause unless it is in a
subquery
contained in a HAVING clause or a select list, and the column being
aggregated is an outer reference.
que me falta? =(
gracias
=~==================================================================~=
~ Server dedicado desde u$s 149/Mes ~
Xeon II 3.06Ghz-1Gb Ram 2x80Gb HD Transferencia Ilimitada
Todo Incluido - Soporte 7x24
->> http://elistas.net/z/9d.5765 <<-
=~==================================================================~=
-~--------------------------------------------------------------------~-
-~--------------------------------------------------------------------~-
CREA GRATIS TU PROPIA RED SOCIAL DE CONTENIDOS
O participa en las muchas ya creadas. ¡Es lo último, es útil y divertido!
¿A qué esperas? Visita ya mismo http://es.corank.com/
--~------------------------------------------------------------------~--
Compra o vende de manera diferente en www.egrupos.net
---------------------------------------------------------------------
Tu dirección de suscripción a este boletín es
horacio.lampe@innovactiongroup.com
Para darte de baja, envía un mensaje a
sql2000-baja@eListas.net
Para obtener ayuda, visita http://www.eListas.net/lista/sql2000
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date:
14/12/2005
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.371 / Virus Database: 267.13.13/200 - Release Date:
14/12/2005
-~--------------------------------------------------------------------~-
-~--------------------------------------------------------------------~-
CREA GRATIS TU PROPIA RED SOCIAL DE CONTENIDOS
O participa en las muchas ya creadas. ¡Es lo último, es útil y divertido!
¿A qué esperas? Visita ya mismo http://es.corank.com/
--~------------------------------------------------------------------~--
-~--------------------------------------------------------------------~-
-~--------------------------------------------------------------------~-
CREA GRATIS TU PROPIA RED SOCIAL DE CONTENIDOS
O participa en las muchas ya creadas. ¡Es lo último, es útil y divertido!
¿A qué esperas? Visita ya mismo http://es.corank.com/
--~------------------------------------------------------------------~--
Compra o vende de manera diferente en www.egrupos.net
|