Ver Mensaje Individual
  #5 (permalink)  
Antiguo 26/09/2012, 12:28
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Select para incluir rango de fechas

select * from
(
select * from tabla1
union
select * from tabla2
union
select * from tabla3
union
select * from tabla4
) as t1 where fecha between @inicio and @final

saludos!!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me