Oracle
 sql >> Base de données >  >> RDS >> Oracle

sql selectL lignes aux colonnes sans sous-requête

essayez ceci..

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'