Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/05/2011, 16:27
osvier
 
Fecha de Ingreso: enero-2006
Mensajes: 293
Antigüedad: 18 años, 3 meses
Puntos: 4
Respuesta: Oracle Join Group by

Pues, las columnas TABLA1.NUMERO y TABLA2.NUMERO tienen los mismos valores, y lo que intento es agrupar por ese campo

Por ejemplo.. where NUMERO = 1

Código:
--tabla1
NUMERO                 CANTIDAD               
---------------------- ---------------------- 
1                      10                     
1                      20                     
1                      30                     

--tabla2
NUMERO                 CANTIDAD               
---------------------- ---------------------- 
1                      10                     
1                      20
y quiero tener el resultado

Código:
NUMERO                 CANTIDAD1            CANTIDAD2   
---------------------- ----------------------  ---------------------- 

1                      60                     30