Oracle-Pivot-Operator
Ich bin neu in Oracle Pivot. Ist das möglich?
Ich habe zwei SpaltenType
undValue
type value
---------------
a a1
b b1
c c1
etc
Bekomme ich so etwas alles in einer Reihe?
a b c
a1 b1 c1
Wenn ich eine Abfrage wie diese versuche, erhalte ich eine Ausgabe wie diese
select A,B from tbl
pivot (max(value) for type in ('a' as A,'b' as B))
------------------------------------
A B
null b1
a1 null
Vielen Dank