Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/10/2011, 08:10
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 complicado para mi

select * from vehiculos as t1
inner join alquileres as t2 on (t1.id_vehiculo=t2.id_vehiculo)
where alquileres.fecha_inicio between @fecha1 and @fecha2 and alquileres.fecha_fin between @fecha1 and @fecha2


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