Details Ticket 2976


Comment | Reply | Take | Open


Serial Number 2976
Subject db.select in GRASS 6.0.0beta1
Area none
Queue grass
Requestors lvillaescusa@alumnes.udl.es
Owner none
Status resolved
Last User Contact Tue May 17 18:23:24 2005 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Tue May 17 18:23:26 2005 (3 yr ago)
Created Thu Feb 10 13:14:46 2005 (4 yr ago)

Transaction History Ticket 2976


Thu, Feb 10 2005 13:14:46    Request created by guest  
Subject: db.select in GRASS 6.0.0beta1

the options of the SQL select statement are limitated? I would like to 
select of one field of a table and to add these valors with "SUM" but it 
doesn't works, I write: 
 
db.select -c sql="select sum(AREA) from parcela" 
 
and I obtain an error in  SQL parser statement... 
 
Somebody can help me? 
 
Thanks, 
 
Lourdes 
Sat, Feb 12 2005 16:20:05    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Sat, 12 Feb 2005 16:19:36 +0100
From Markus Neteler <neteler@itc.it>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #2976] (grass) db.select in GRASS 6.0.0beta1
Message-ID <20050212151936.GB23085@thuille.itc.it>
Mail-Followup-To Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
References <20050210121446.3742E102C51@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
In-Reply-To <20050210121446.3742E102C51@lists.intevation.de>
User-Agent Mutt/1.4.1i
X-Spam-Status No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level
On Thu, Feb 10, 2005 at 01:14:46PM +0100, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2976
> -------------------------------------------------------------------------
> 
> Subject: db.select in GRASS 6.0.0beta1
> 
> the options of the SQL select statement are limitated? I would like to 
> select of one field of a table and to add these valors with "SUM" but it 
> doesn't works, I write: 
>  
> db.select -c sql="select sum(AREA) from parcela" 
>  
> and I obtain an error in  SQL parser statement... 
>  
> Somebody can help me? 

What does

 v.db.connect -p parcela

say? 
 
The dbf driver functionality is limited (maybe we should change to
sqlite one day?).

Markus


Tue, May 17 2005 18:22:20    Mail sent by guest  
No response, so I'll close it.
Tue, May 17 2005 18:23:24    Mail sent by mneteler  
> db.select -c sql="select sum(AREA) from parcela" 


Ah: The sum() function is not available in the DBF driver.
But it should work connecting GRASS to PG or mySQL.

Markus
Tue, May 17 2005 18:23:26    Status changed to resolved by mneteler  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request