The pivot statement doesn't seem to be able to do this.
Yes, because you're not trying to pivot your rows into columns, you're trying to unpivot them from columns into rows.
If your columns had a predefined, enumerated set of names, you could use UNPIVOT like this:
select *
from (
select '2009042 Restraint 151214.pdf' v1,
'2009042 Restraint 170215.pdf' v2,
'2009042 Restraint 240215.pdf' v3,
'2009856 Restraint 190215.pdf' v4,
'208272 Notice 120215.pdf' v5,
'208272 Restraint 120215.pdf' v6,
'212598 Restraint 160215.pdf' v7,
'213195 Notice 130215.pdf' v8
from dual
) t
unpivot (
col1 for v in (v1, v2, v3, v4, v5, v6, v7, v8)
)
Yielding:
V COL1
--------------------------------
V1 2009042 Restraint 151214.pdf
V2 2009042 Restraint 170215.pdf
V3 2009042 Restraint 240215.pdf
V4 2009856 Restraint 190215.pdf
V5 208272 Notice 120215.pdf
V6 208272 Restraint 120215.pdf
V7 212598 Restraint 160215.pdf
V8 213195 Notice 130215.pdf
If no such names are available, things get a bit more hairy, but still doable (probably depending on not well-defined column naming conventions in Oracle):
select *
from (
select '2009042 Restraint 151214.pdf',
'2009042 Restraint 170215.pdf',
'2009042 Restraint 240215.pdf',
'2009856 Restraint 190215.pdf',
'208272 Notice 120215.pdf',
'208272 Restraint 120215.pdf',
'212598 Restraint 160215.pdf',
'213195 Notice 130215.pdf'
from dual
) t
unpivot (
col1 for v in (
"'2009042RESTRAINT151214.PDF'",
"'2009042RESTRAINT170215.PDF'",
"'2009042RESTRAINT240215.PDF'",
"'2009856RESTRAINT190215.PDF'",
"'208272RESTRAINT120215.PDF'",
"'208272NOTICE120215.PDF'",
"'212598RESTRAINT160215.PDF'",
"'213195NOTICE130215.PDF'"
)
)
Yielding:
V COL1
------------------------------------------------------------
'2009042RESTRAINT151214.PDF' 2009042 Restraint 151214.pdf
'2009042RESTRAINT170215.PDF' 2009042 Restraint 170215.pdf
'2009042RESTRAINT240215.PDF' 2009042 Restraint 240215.pdf
'2009856RESTRAINT190215.PDF' 2009856 Restraint 190215.pdf
'208272RESTRAINT120215.PDF' 208272 Restraint 120215.pdf
'208272NOTICE120215.PDF' 208272 Notice 120215.pdf
'212598RESTRAINT160215.PDF' 212598 Restraint 160215.pdf
'213195NOTICE130215.PDF' 213195 Notice 130215.pdf
Of course, if you're ready to write that much SQL anyway, why not just use UNION ALL, as Gordon suggested