By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
6 rows affected
產品 | 文件階段 | 文件編號 |
---|---|---|
A | DR1 | 111 |
A | DR2 | 222 |
B | DR1 | 456 |
B | DR2 | 789 |
C | DR2 | 888 |
D | DR1 | 999 |
產品 | DR1文件階段 | DR2文件階段 |
---|---|---|
A | 111 | 222 |
B | 456 | 789 |
C | null | 888 |
D | 999 | null |
Warning: Null value is eliminated by an aggregate or other SET operation.