Ver Mensaje Individual
  #9  
Antiguo 16-08-2005
perillan perillan is offline
Miembro
 
Registrado: feb 2005
Posts: 82
Reputación: 22
perillan Va por buen camino
Neftali: Perdona que no siguiera con el tema, pero bueno he estado unos días de descanso y lo deje ahí pendiente.

He vuelto a revisar los datos y hacer la consulta directamente en las propiedades SQL del IBQuery y haciendo las consultas por separado ejemplo:



SELECT *from ARTICULOS
WHERE
BASEDATOS='MAQUINAS'


order by BASEDATOS

-Esto funciona correctamente.



SELECT *from ARTICULOS
WHERE
BONDESTINO='CAMINOS'


order by BONDESTINO

-Esto también funciona correctamente.



SELECT *from ARTICULOS
WHERE
BASEDATOS='MAQUINAS' or BONDESTINO='CAMINOS'


order by BASEDATOS,BONDESTINO

-Esto también funciona correctamente.



SELECT *from ARTICULOS
WHERE
BASEDATOS='MAQUINAS' and BONDESTINO='CAMINOS'


order by BASEDATOS,BONDESTINO

y esto no me da ningún resultado, así es que no se que pensar ni que hacer ya que como veis aquí no hay ni espacios ni caracteres extraños.

Responder Con Cita