【发布时间】:2021-06-03 13:24:27
【问题描述】:
假设我有一张这样的表:
| col1 | col2 | col3 | col4 |
|---|---|---|---|
| commonrow | one | two | null |
| commonrow | null | null | three |
如何生成如下所示的结果:
| col1 | col2 | col3 | col4 |
|---|---|---|---|
| commonrow | one | two | three |
谢谢
【问题讨论】:
-
非常感谢 @eshirvana 和对 marc_s 的编辑
标签: sql database group-by union union-all