Ver Mensaje Individual
  #3  
Antiguo 09-06-2006
Avatar de tcp_ip_es
tcp_ip_es tcp_ip_es is offline
No confirmado
 
Registrado: ago 2003
Ubicación: Madrid
Posts: 635
Reputación: 0
tcp_ip_es Va por buen camino
Gracias por tu respuesta, pero no me sirvió al final lo hice asi.

Código SQL [-]
select  if ((select day(FechaActivo) from Configuracion) =1, (select count( Fx_Imputa)
from CalendarioLaboral
where (month(Fx_Imputa) = (select month(FechaActivo) from Configuracion)) and (year(Fx_Imputa) = (select year(FechaActivo) from Configuracion)) and (day(Fx_Imputa) >=1) and (day(Fx_Imputa) <=15))
,(select count(Fx_Imputa)
from CalendarioLaboral
where (month(Fx_Imputa) = (select month(FechaActivo) from Configuracion)) and (year(Fx_Imputa) = (select year(FechaActivo) from Configuracion)) and (day(Fx_Imputa) >15)) 
) as Dias

no se si existirá otra manera....
Saludos, Tony
Responder Con Cita