
07/09/2005, 11:45
|
 | Colaborador | | Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 20 años, 2 meses Puntos: 38 | |
Código:
select @sab=isnull((select atiempo
from asistencias
where idempleado =@rfc
AND idfecha>=@fini
and idfecha<=@ffin and dia=7),-1)
o bien:
Código:
select @sab=(select atiempo
from asistencias
where idempleado =@rfc
AND idfecha>=@fini
and idfecha<=@ffin and dia=7)
select @sab = isnull(@sab,-1)
|