When I run the query :
select count(*) from (select idCover from x90..dimCover group by idCover having count(*) > 1)
I get the error :
Add an alias after your last bracket.
select count(*) from (select idCover from x90..dimCover group by idCover having count(*) > 1) a
SELECT COUNT (*) FROM ( SELECT IdCover FROM x90..dimCover group by idCover having count(*) > 1) AS a
(note the alias at the end)