How can a word like 'ORACLE' be displayed as rows like this, using only one SQL statement?
Word
O
R
A
C
L
E
You could use the CONNECT BY condition:
SELECT SUBSTR('ORACLE', level, 1)
FROM dual
CONNECT BY level <= LENGTH('ORACLE');
Edit 1: As per Alex Poole's suggestion, I replaced regexp_substr('ORACLE', '.', 1, level) IS NOT NULL with level <= LENGTH('ORACLE');
Edit 2: I replaced regexp_substr with substr
decode as well, but you would still have to use CONNECT BY. But you could also do it with SUBSTR (without the need of regexp). See my updated answer.