pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: vamsee movva <vamseejump@gmail.com>
To: pgsql-sql@postgresql.org
Subject: not able to execute query on spatial database.
Date: Fri, 27 Oct 2006 09:34:21 -0500
Message-ID: <be5110d00610270734o3e202cc0o725340d144aff3c2@mail.gmail.com> (raw)

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

view thread (3+ messages)  latest in thread

Message-ID: <be5110d00610270734o3e202cc0o725340d144aff3c2@mail.gmail.com>
Permalink:  ../be5110d00610270734o3e202cc0o725340d144aff3c2@mail.gmail.com/
Also on:    postgresql.org/message-id/be5110d00610270734o3e202cc0o725340d144aff3c2@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: vamseejump@gmail.com
  Subject: Re: not able to execute query on spatial database.
  In-Reply-To: <be5110d00610270734o3e202cc0o725340d144aff3c2@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox