Select
ΚΩΔ
_ΠΕΛΑΤΗ
From
ΠΕΛΑΤΕΣ
Group by
ΚΩΔ
_
ΠΕΛΑΤΗ
Having
count
(
*) >1000