Ver Mensaje Individual
  #2  
Antiguo 08-06-2008
pcicom pcicom is offline
Miembro
 
Registrado: may 2003
Ubicación: MONTERREY MEXICO
Posts: 253
Reputación: 22
pcicom Va por buen camino
Ahi te va...

Código SQL [-]

SELECT E.ID,E.NOMBRE,E.TANDA,COUNT(R.ENTRADA),
  COUNT(R.SALIDA),
  COUNT(R.TARDANZA),
  COUNT(R.PERMISO),
  COUNT(R.LICENCIA),
  COUNT(R.EXCUSA),
  COUNT(R.ENFERMEDAD),
  COUNT(R.VACACIONES) 
FROM REGISTRO R, EMPLEADOS E
WHERE E.ID=R.EMPID GROUP BY 1,2,3
__________________
Poco ha de saber el que no pregunta.. Yo por eso soy un pregunton
Responder Con Cita