Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/06/2012, 14:43
cariberecord
 
Fecha de Ingreso: abril-2010
Mensajes: 12
Antigüedad: 14 años
Puntos: 0
Busqueda condicionales en un query

saludos, tengo este query pero creo q es poco eficiente.. ya que me sale "java heap space"

select ReMovil, ReMotivo, RePuntoControl, RePlaca,ReLocalizacion,MtNombre,ReDateTime,ReLatit ud,ReLongitud from reportes left join motivos on ReMotivo=MtId where ReMovil like '%' and RePuntoControl like '%' and (ReMotivo = '101' or ReMotivo = '103' or ReMotivo = '257' or ReMotivo = '256' or ReMotivo = '10') or (ReDistancia >= '0' and ReDistancia < '1.5') order by ReDateTime desc

saben como podria optimizarlo?


Gracias por su atencion.