
01/11/2006, 04:30
|
| | Fecha de Ingreso: octubre-2006
Mensajes: 36
Antigüedad: 18 años, 4 meses Puntos: 0 | |
Tendrás que hacer de nuevo el calculo en los valores que quieres mostrar:
SELECT R.rut, puntaje as puntajeDiagnostico,
(select puntaje from tblregistro where rut = R.rut and modulo = 'dfa9') as puntajeFinal,
((select puntaje from tblregistro where rut = R.rut and modulo = 'dfa9') - puntaje) as diferencia
FROM tblregistro AS R
WHERE (modulo like 'd0*')
and ((select puntaje from tblregistro where rut = R.rut and modulo = 'dfa9') - puntaje) >= 20
ORDER BY 4; |