Je souhaite compter le nombre de chlore, niveau, turb pour chaque entité ARBRI, MPECQ.

J'ai essayé avec row_number() over (partition by order by), SANS SUCCES !
Soit je conserve le second champ entier et donc cela incrémente de 1 (puisque les noms sont différents), soit je tronque et ne retient que les 3 premières lettres et ne parvient plus à faire le lien avec la données initiales.

ARBRI CHLORE_ANS
ARBRI CHLORE_CIT
ARBRI CHLORE_PECQ
ARBRI CHLORE_SORT_BASSE
ARBRI CHLORE_SORT_HAUTE
ARBRI CHLORE_SORT_UT
ARBRI NITRATE
ARBRI NIV_D
ARBRI NIV_G
ARBRI PRES_ESOIL
ARBRI PRES_PECQ
ARBRI PRES_SORT_BASSE
ARBRI PRES_SORT_HAUTE
ARBRI TURBI_ANS
ARBRI TURBI_PECQ
ARBRI TURBI_SORT
MPECQ CHLORE_ENT
MPECQ CHLORE_SORT
MPECQ NIV_D
MPECQ NIV_G
MPECQ NIV_REF

Merci pour votre aide.