From: | "Aaron Bono" <postgresql(at)aranya(dot)com> |
---|---|
To: | "vamsee movva" <vamseejump(at)gmail(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: not able to execute query on spatial database. |
Date: | 2006-10-27 15:25:10 |
Message-ID: | bf05e51c0610270825s56875682jdc3248f58c3cd0be@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 10/27/06, vamsee movva <vamseejump(at)gmail(dot)com> wrote:
>
> Hello all,
> I am working with spatial tables. i have two spatial data
> tables, one represents the whole state and another table represents the
> damaged locations in the state. My aim is to find number of damaged
> locations in every county or parish.
> Here i am giving the query i used to do this, could you please tell me
> whether i am doing right thing or not.
>
> select count(*) from damagedlocations l1,county l2 where (l2.the_geom and
> l1.the_geom) and l2.parishid=particular_parishid;
>
> thanks in advance.
> vamsee movva
>
What is your table structure? I think you mean (l2.the_geom =
l1.the_geom). If you use
l2.parishid=particular_parishid then you are not going to get EVERY country
or parish.
Have you run this query? If so, what are you getting, is it right and if so
why not?
--
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
http://codeelixir.com
==================================================================
From | Date | Subject | |
---|---|---|---|
Next Message | George Pavlov | 2006-10-27 15:43:06 | Re: How to query information schema from shell script |
Previous Message | Jon Horsman | 2006-10-27 15:22:25 | Re: How to query information schema from shell script |