All pastes #930265 Raw Edit

Mine

public text v1 · immutable
·published 2008-03-06 12:58 UTC
rendered paste body
mysql> select sum(importo) from tabella where value="A";
+--------------------+
|       sum(importo) |
+--------------------+
|            4922.28 |
+--------------------+
1 row in set (0.00 sec)

mysql> select sum(importo) from tabella where value="B";
+--------------------+
|       sum(importo) |
+--------------------+
|              10.55 |
+--------------------+
1 row in set (0.00 sec)