Re: SINTAX ERROR!!

From: João Paulo Ribeiro <jp(at)mobicomp(dot)com>
To: "Gonzalo A(dot) Aranda Corral" <garanda(at)bitakora(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: SINTAX ERROR!!
Date: 2002-04-24 13:22:39
Message-ID: 3CC6B19F.6000309@mobicomp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi!

I think what you want to do is

SELECT Count( Distinct( cdusuario ) ) AS Cuenta FROM visitas;

:)

Regards.
João Paulo Ribeiro

Gonzalo A. Aranda Corral wrote:

>
> Someone of you can see where the sentence is wrong???
>
>SELECT Count(*) FROM (SELECT DISTINCT cdusuario FROM visitas) AS Cuenta;
>
>...
>parse error near select!!!
>
>
>:(
>
>Thanks for your help!!
>
>gum.
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com)
>Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/02
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html
>
>

--
----------------------------------------------------------------------------
MobiComp - Mobile Computing & Wireless Solutions
phone: +351 253 305 250 fax: +351 253 305 251
web: http://www.mobicomp.com
----------------------------------------------------------------------------

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2002-04-24 13:25:59 Re: getArray Method()
Previous Message Nick Fankhauser 2002-04-24 12:07:15 Re: SINTAX ERROR!!