Gracias por la aportación.
He probado:
Código SQL
[-]select
CODTIPODOC, CODIGODOC, LETRADOC, NOMBRE, PARAPELLIDO1, APELLIDO1, PARAPELLIDO2, APELLIDO2, SEXO, HOJAPADRONAL, count(*)
from PHABITANTES Group By HOJAPADRONAL Having Count (*) = 1
y me da error de
Código:
Invalid token.
Dynamic SQL Error.
SQL error code = -104.
Invalid expression in the select list (not contained in either an aggregate function or the GROUP BY clause).
Parece como si el "group by" solo pudiese seleccionar el campo de agrupación.