如何查詢交叉表等報告? 例如我的表如下所示生成交叉表報告im oracle?
+----+--+--+--+
|Name|v1|v2|v3|
+----+--+--+--+
|A |12|10|5 |
+----+--+--+--+
|B |10|5 |20|
+----+--+--+--+
現在我的查詢應該給我下?
+-----+--+--+--+
|Name |v1|v2|v3|
+-----+--+--+--+
|A |12|10|5 |
+-----+--+--+--+
|B |10|5 |20|
+-----+--+--+--+
|Total|22|15|25|
+-----+--+--+--+
感謝您的幫助
請問MySQL還是oracle? –