Ver Mensaje Individual
  #6 (permalink)  
Antiguo 02/09/2011, 11:07
jurena
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Cáceres
Mensajes: 3.735
Antigüedad: 16 años, 1 mes
Puntos: 300
Respuesta: Rango de fechas seleccionar inverso

Creo que esto también funciona

SELECT * FROM reservas WHERE bici= 'bici1' AND id NOT IN (SELECT id FROM `reservas` WHERE fecha_fin >= '2011-09-02' AND fecha_inicio <= '2011-09-01')