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

From Guido Barosio
Subject Re: what the problem with this query
Date
Msg-id f7f6b4c70604140431j4dbb7f3dx348ec60c286814e5@mail.gmail.com
Whole thread Raw
In response to what the problem with this query  (venu gopal <gopalonline2@yahoo.co.uk>)
List pgsql-admin
o.orgunitid = e.orgunitid)

That ")" is not valid Venu. (Nothing is being enclosed)

Regards,
Guido


On 4/14/06, venu gopal <gopalonline2@yahoo.co.uk> 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
>
> Regards,
> venu
>
>


--
Guido Barosio
-----------------------
http://www.globant.com
guido.barosio@globant.com

pgsql-admin by date:

Previous
From: venu gopal
Date:
Subject: what the problem with this query
Next
From: "William Penberthy"
Date:
Subject: Re: [GENERAL] what the problem with this query