"Gonzalo A. Aranda Corral" <garanda(at)bitakora(dot)com> writes:
> Someone of you can see where the sentence is wrong???
> SELECT Count(*) FROM (SELECT DISTINCT cdusuario FROM visitas) AS Cuenta;
It's not wrong (though as others have pointed out, there are other
ways to do it). How old is your Postgres? This should work in 7.1
or later.
regards, tom lane