I am modifying a program and I want to obtain two sums independently of the id and save them in independent variables one of another. It would also be useful to obtain a table resulting from a line with only the two columns added.
With this example table.
+----+--------+-----------------+
| id | sueldo | propiedades(m2) |
+----+--------+-----------------+
| 1 | 1000 | 400 |
| 2 | 1500 | 200 |
| 3 | 2000 | 300 |
+----+--------+-----------------+
sueldototal, propiedadestotal = (from...where..select)
or
dim z = (....select sum(sueldo), sum(propiedades))
result (z):
+--------+-----------------+
| sueldo | propiedades(m2) |
+--------+-----------------+
| 4500 | 900 |
+--------+-----------------+
Thanks in advance.