sql >> Base de Datos >  >> RDS >> Oracle

Convertir columnas a filas en Oracle

SELECT name
  FROM pivot_test
UNPIVOT ( name FOR origin IN (fname, lname) )

SQL Fiddle