样本输入:
PARTY |TYPE | TIMESTAMP
-------------------------------------
135761103 |AA |2017-04-24 11:18:46.233
135761103 |BB |2017-04-24 11:19:18.436
期望输出:
PARTY |AA_TIMESTAMP|BB_TIMESTAMP
--------------------------------
135761103 |2017-04-24 11:18:46.233 |2017-04-24 11:19:18.436
1条答案
按热度按时间hwamh0ep1#
你可以用
CASE
&GROUP BY
组合。比如: