what the problem with this query - Mailing list pgsql-admin

From venu gopal
Subject what the problem with this query
Date
Msg-id 20060414110916.9271.qmail@web25608.mail.ukl.yahoo.com
Whole thread Raw
Responses Re: what the problem with this query  ("Guido Barosio" <gbarosio@gmail.com>)
Re: [GENERAL] what the problem with this query  ("William Penberthy" <bpenberthy@scarpatechnology.com>)
Re: what the problem with this query  ("Jim C. Nasby" <jnasby@pervasive.com>)
List pgsql-admin
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

Regards,
venu

pgsql-admin by date:

Previous
From: Achilleus Mantzios
Date:
Subject: Re: Kernel 2.4->2.6 upgrade results in PANIC: could not locate a
Next
From: "Guido Barosio"
Date:
Subject: Re: what the problem with this query