Oracle
 sql >> Database >  >> RDS >> Oracle

sql selectL righe in colonne senza sottoquery

prova questo..

select case CODIGO when 190 then INFO end AS INFO_190,
case CODIGO when 130 then INFO end AS INFO_130,
case CODIGO when 140 then INFO end AS INFO_140
from t_test where grupo = 'VTOS'