Visual Basic Foro

Programación => Bases de Datos => Mensaje iniciado por: obethermy en Octubre 20, 2015, 10:01:39 pm

Título: PONER LOS RESULTADOS DE UNA SUMA EN UNA ETIQUETA EN CLAUSULA WHERE
Publicado por: obethermy en Octubre 20, 2015, 10:01:39 pm
PONER LOS RESULTADOS DE UNA SUMA EN UNA ETIQUETA EN LA CLAUSULA WHERE

Código: (SQL) [Seleccionar]
SELECT A,B,(C+D+E+F) AS TOTAL WHERE FECHA=A AND C=D GROUP BY E,F HAVING TOTAL<>0
 

SACA LA LISTA DEL GRUPO Y TOTALES NEGATIVOS O POSITIVOS DIFERENTES DE 0