Bene.
Direi che allora un group by dovrebbe andarti bene