Ver Mensaje Individual
  #2 (permalink)  
Antiguo 18/11/2013, 07:56
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 5 meses
Puntos: 774
Respuesta: Lunes martes entre dos fechas

podria ser

select case when datepart(daymfecha)='Lunes' then count(1) end as lunes,
case when datepart(daymfecha)='Martes' then count(1) end as Martes from tabla where fecha between inicio and fin


Revisa cual es a funcion de datepart que te regresa el nombre del dia :P
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me