OK, so I'm not sure this is even truly a bug, more just an annoying corner case. The problem is: when pivoting on multiple columns, the new column names are made from joining the pivot values with '_' ...
表記件、Teradataで横持ちテーブルを縦持ちにする際の関数、反対に縦持ちテーブルを横持ちにする際の関数を使ってみました。まずは以下のような横持ちテーブルを用意します。 作成SQLは以下の通りです。 続いて、縦持ちされたデータを横持ちに戻します。
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する