
19/08/2005, 13:40
|
 | | | Fecha de Ingreso: febrero-2005
Mensajes: 395
Antigüedad: 20 años, 1 mes Puntos: 1 | |
MUCHAS GRACIAS.
LO PROBE Y FUNCIONO PERFECTO.
PERO CON ESTA CONSULTA NO QUIERE.
ES LA MISMA PERO MAS LARGA
COMO METO LOS LEFT O EN DONDE PORQUE NO FUNCIONO NI CON INNER JOIN NI CON LEFT O NO SE DONDE DEBO USAR LOS LEFT JOIN.
EL HECHO ES QUE NO ME SALE NADA.
LA CONSULTA VERDADERA ES ESTA
SELECT radicacion.idradica,actos.otorgante1act,actos.otor gante2act,otorgantes1.identificacionotorg1,otorgan tes2.identificacionotorg2,
actos.nombreact||' '||actos.abreviacionact AS Acto,
actoscliente.cuantia,actoscliente.catastro,A.nombr esclient||' '||A.apellidosclient AS Nombre,
B.nombresclient||' '||B.apellidosclient AS Nombre2
FROM (((((radicacion INNER JOIN actoscliente ON radicacion.idradica=actoscliente.idradica)
INNER JOIN actos ON actos.idact=actoscliente.idact)
INNER JOIN ventas ON ventas.idactoclie=actoscliente.idactoclie)
INNER JOIN otorgantes1 ON otorgantes1.idventa=ventas.idventa)
INNER JOIN otorgantes2 ON otorgantes2.idventa=ventas.idventa)
,clientes A, clientes B
WHERE radicacion.idradica = 11
AND A.identificacionclient = otorgantes1.identificacionotorg1
AND B.identificacionclient = otorgantes2.identificacionotorg2
ORDER BY otorgantes1.identificacionotorg1
GRACIAS POR SU AYUDA |