[GRASSLIST:9555] Using SUM() in SELECT db.execute..

Luca Casagrande luca.casagrande at gmail.com
Sat Dec 17 11:15:26 EST 2005


Hi to all guys!

I have to create a table using this line:

CREATE TABLE abit_totali AS SELECT cod_comune, SUM( totale_abitanti) from
abit_cens GROUP BY cod_comune

Reading SQL guide, I noticed that sum() can't be used in SELECT expression...
How can I solve this problem (i am using dbf...)?

Thx
Luca
--
"Esperienza è il nome che ciascuno da ai suoi errori. (O. Wilde) "

GENTOO-GIS Development Team
jabber: casagrande at jabber.linux.it

 




More information about the grass-user mailing list