
10/06/2009, 14:50
|
 | Colaborador | | Fecha de Ingreso: febrero-2009 Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años, 1 mes Puntos: 360 | |
Respuesta: favor revisen este select Para hacer comparaciones con alias, en este caso dif, no debes utilizar where sino having.
otra posibilidad y mas sencilla es que hagas la operacion directamente en el where. from t1
where saldo = 0
and datediff(fcha_vncmnto,fcha_ultmo_pgo) < 0
__________________ Without data, You are another person with an opinion.
W. Edwads Deming |