pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: venu gopal <gopalonline2@yahoo.co.uk>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: what the problem with this query
Date: Thu, 20 Apr 2006 20:31:22 -0500
Message-ID: <20060421013122.GQ49405@pervasive.com> (raw)
In-Reply-To: <20060414110916.9271.qmail@web25608.mail.ukl.yahoo.com>
References: <20060414110916.9271.qmail@web25608.mail.ukl.yahoo.com>

On Fri, Apr 14, 2006 at 11:09:16AM +0000, venu gopal wrote:
> Hi all,
>    When i try to run the following query it gives the following error what was wrong in the query.
> 
> Query:SELECT o.orgunitname AS ouname, e.entrynumber AS value_field, centroid(c.the_geom) AS the_geom, c.ogc_fid AS ogc_fid FROM (ctrphc AS c INNER JOIN orgunit o ON c.dhs_ouname = o.orgunitname) INNER JOIN (SELECT orgunitid, entrynumber FROM routinedataou4 WHERE dataelementid=1195 AND dataperiodid = 86) AS e ON o.orgunitid = e.orgunitid) AS new_table USING UNIQUE ogc_fid USING SRID=-1
> 
> Error::ERROR:  syntax error at or near ")" at character 333

Extra ) after the the last ON.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (6+ messages)

Message-ID: <20060421013122.GQ49405@pervasive.com>
Permalink:  ../20060421013122.GQ49405@pervasive.com/
Also on:    postgresql.org/message-id/20060421013122.GQ49405@pervasive.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jnasby@pervasive.com, gopalonline2@yahoo.co.uk, pgsql-general@postgresql.org
  Subject: Re: what the problem with this query
  In-Reply-To: <20060421013122.GQ49405@pervasive.com>
  References: <20060414110916.9271.qmail@web25608.mail.ukl.yahoo.com> <20060421013122.GQ49405@pervasive.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