Ver Mensaje Individual
  #1  
Antiguo 09-01-2006
Avatar de lucasarts_18
lucasarts_18 lucasarts_18 is offline
Miembro
 
Registrado: mar 2005
Ubicación: Villa Alemana,Chile
Posts: 1.087
Reputación: 23
lucasarts_18 Va por buen camino
Union de dos campos en el where

Hola a todos:

Quiero unir dos campos en la clausula where pero no he podido, algo así intento:

Código SQL [-]
SELECT P.RUN 
  FROM  PRF_PROFESOR P
        ELQUI.PROFESOR EP
  WHERE P.run = EP.RUN || EP.DV_RUN
y la otra forma, es con una subconsulta

Código SQL [-]
SELECT P.RUN 
  FROM  PRF_PROFESOR P
        ELQUI.PROFESOR EP
  WHERE P.run = SELECT(EP.RUN || EP.DV_RUN
                FROM ELQUI.PROFESOR
                WHERE ELQUI.PROFESOR.RUN = P.RUN)
Esto lo necesito implementar en Oracle...

Gracias a todos
__________________
No todo es como parece ser...

Última edición por lucasarts_18 fecha: 10-01-2006 a las 02:19:50. Razón: Correción del título
Responder Con Cita