我有一个看起来像这样的表:
+----------------------------------------+
|Name | kode | jum |
+----------------------------------------+
| aman |kode1 | 2 |
| aman |kode2 | 1 |
| jhon |kode1 | 4 |
| amir |kode2 | 4 |
+--------------------+-----------+-------+
如何使用MySQL进行这样的视图?
kode1 kode2 count
aman 2 1 3
jhon 0 4 4
amir 0 4 4